class Translation extends AbstractDateTimed (View source)

Translations describe language locales to be used by Nodes, Tags, UrlAliases and Documents.

Properties

protected $id from AbstractEntity
protected DateTime $createdAt from AbstractDateTimed
protected DateTime $updatedAt from AbstractDateTimed
static array $availableLocales Associates locales to pretty languages names.
protected ArrayCollection $documentTranslations

Methods

int
getId()

No description

setId(int $id)

No description

getCreatedAt()

No description

setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

resetDates()

Set creation and update date to now.

string
getLocale()

No description

$this
setLocale(string $locale)

No description

string
getName()

No description

$this
setName(string $name)

No description

boolean
isDefaultTranslation()

No description

$this
setDefaultTranslation(boolean $defaultTranslation)

No description

boolean
isAvailable()

No description

$this
setAvailable(boolean $available)

No description

string
getOneLineSummary()

No description

static array
getAvailableLocales()

Return available locales in an array.

ArrayCollection
getNodeSources()

No description

ArrayCollection
getTagTranslations()

No description

ArrayCollection
getDocumentTranslations()

No description

getHandler()

No description

getViewer()

No description

__construct()

Create a new Translation

string
getOverrideLocale()

Gets the value of overrideLocale.

setOverrideLocale(string $overrideLocale)

Sets the value of overrideLocale.

string
getPreferredLocale()

Get preferred locale between overrideLocale or locale.

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

DateTime getCreatedAt()

Return Value

DateTime

AbstractEntity setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

AbstractEntity

DateTime getUpdatedAt()

Return Value

DateTime

AbstractEntity setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

AbstractEntity

preUpdate()

prePersist()

AbstractEntity resetDates()

Set creation and update date to now.

Return Value

AbstractEntity

string getLocale()

Return Value

string

$this setLocale(string $locale)

Parameters

string $locale

Return Value

$this

string getName()

Return Value

string

$this setName(string $name)

Parameters

string $name

Return Value

$this

boolean isDefaultTranslation()

Return Value

boolean

$this setDefaultTranslation(boolean $defaultTranslation)

Parameters

boolean $defaultTranslation

Return Value

$this

boolean isAvailable()

Return Value

boolean

$this setAvailable(boolean $available)

Parameters

boolean $available

Return Value

$this

string getOneLineSummary()

Return Value

string

static array getAvailableLocales()

Return available locales in an array.

Return Value

array

ArrayCollection getNodeSources()

Return Value

ArrayCollection

ArrayCollection getTagTranslations()

Return Value

ArrayCollection

ArrayCollection getDocumentTranslations()

Return Value

ArrayCollection

TranslationHandler getHandler()

Return Value

TranslationHandler

TranslationViewer getViewer()

Return Value

TranslationViewer

__construct()

Create a new Translation

string getOverrideLocale()

Gets the value of overrideLocale.

Return Value

string

Translation setOverrideLocale(string $overrideLocale)

Sets the value of overrideLocale.

Parameters

string $overrideLocale the override locale

Return Value

Translation

string getPreferredLocale()

Get preferred locale between overrideLocale or locale.

Return Value

string