trait CommonOperationsTrait

Properties

static $TRANSLATED_CONTENT_PROPERTY_START

Methods

bool
delete()

Deletes model and also deletes possible related translation_job models

string|null
getContentForLocale(string $locale)

Returns the content for the given $locale... if there is any

array
getMissingTranslations()

Determines which language has not translation yet

null|string
getOriginalContent()

Returns the $original_language content if possible

array
getTranslatedContent()

No description

void
resetContent()

Resets/Emptys all content related to the translation

Details

at line 157
bool delete()

Deletes model and also deletes possible related translation_job models

Return Value

bool

Was delete successful?

at line 73
string|null getContentForLocale(string $locale)

Returns the content for the given $locale... if there is any

Parameters

string $locale

The locale (e.g. 'DE_DE', 'EN_GB', ...)

Return Value

string|null

$content

at line 95
array getMissingTranslations()

Determines which language has not translation yet

Return Value

array

$missing The locale strings with empty content

at line 18
null|string getOriginalContent()

Returns the $original_language content if possible

Return Value

null|string

$content

at line 38
array getTranslatedContent()

No description

Return Value

array

$translatedContent E.g.: ['DE_DE'=>[...], 'EN_GB' => [...]]

at line 131
void resetContent()

Resets/Emptys all content related to the translation

Return Value

void