Beta version

class Translation extends AbstractDateTimed

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

Properties

static array $availableLocales Associates locales to pretty languages names.

Methods

int
getId()

Get entity unique identifier.

setId(int $id)

No description

getCreatedAt()

No description

$this
setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

$this
setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

$this
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

in AbstractEntity at line 51
int getId()

Get entity unique identifier.

Return Value

int

in AbstractEntity at line 60
AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

in AbstractDateTimed at line 53
DateTime getCreatedAt()

Return Value

DateTime

in AbstractDateTimed at line 63
$this setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

$this

in AbstractDateTimed at line 78
DateTime getUpdatedAt()

Return Value

DateTime

in AbstractDateTimed at line 88
$this setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

$this

in AbstractDateTimed at line 98
preUpdate()

in AbstractDateTimed at line 105
prePersist()

in AbstractDateTimed at line 115
$this resetDates()

Set creation and update date to now.

Return Value

$this

at line 507
string getLocale()

Return Value

string

at line 517
$this setLocale(string $locale)

Parameters

string $locale

Return Value

$this

at line 537
string getName()

Return Value

string

at line 547
$this setName(string $name)

Parameters

string $name

Return Value

$this

at line 561
boolean isDefaultTranslation()

Return Value

boolean

at line 570
$this setDefaultTranslation(boolean $defaultTranslation)

Parameters

boolean $defaultTranslation

Return Value

$this

at line 585
boolean isAvailable()

Return Value

boolean

at line 595
$this setAvailable(boolean $available)

Parameters

boolean $available

Return Value

$this

at line 605
string getOneLineSummary()

Return Value

string

at line 617
static array getAvailableLocales()

Return available locales in an array.

Return Value

array

at line 630
ArrayCollection getNodeSources()

Return Value

ArrayCollection

at line 643
ArrayCollection getTagTranslations()

Return Value

ArrayCollection

at line 656
ArrayCollection getDocumentTranslations()

Return Value

ArrayCollection

at line 664
TranslationHandler getHandler()

Return Value

TranslationHandler

at line 672
TranslationViewer getViewer()

Return Value

TranslationViewer

at line 680
__construct()

Create a new Translation

at line 692
string getOverrideLocale()

Gets the value of overrideLocale.

Return Value

string

at line 704
Translation setOverrideLocale(string $overrideLocale)

Sets the value of overrideLocale.

Parameters

string $overrideLocale the override locale

Return Value

Translation

at line 716
string getPreferredLocale()

Get preferred locale between overrideLocale or locale.

Return Value

string