TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Language Class Reference
Inheritance diagram for Language:
AbstractEntity AbstractDomainObject DomainObjectInterface ObjectMonitoringInterface

Public Member Functions

 __construct ($locale= '', $label= '', $selected=false, $lastUpdate=null)
 
 getLastUpdate ()
 
 setLastUpdate ($lastUpdate)
 
 setLabel ($language)
 
 getLabel ()
 
 setLocale ($locale)
 
 getLocale ()
 
 setSelected ($selected)
 
 getSelected ()
 
 toArray ()
 
- Public Member Functions inherited from AbstractDomainObject
 getUid ()
 
 setPid ($pid)
 
 getPid ()
 
 _setProperty ($propertyName, $propertyValue)
 
 _getProperty ($propertyName)
 
 _getProperties ()
 
 _hasProperty ($propertyName)
 
 _isNew ()
 
 _memorizeCleanState ($propertyName=null)
 
 _memorizePropertyCleanState ($propertyName)
 
 _getCleanProperties ()
 
 _getCleanProperty ($propertyName)
 
 _isDirty ($propertyName=null)
 
 _isClone ()
 
 _setClone ($clone)
 
 __clone ()
 
 __toString ()
 
- Public Member Functions inherited from ObjectMonitoringInterface
 _memorizeCleanState ()
 
 _isDirty ()
 

Protected Attributes

 $locale = ''
 
 $label = ''
 
 $selected = false
 
 $lastUpdate
 
- Protected Attributes inherited from AbstractDomainObject
 $uid
 
 $_localizedUid
 
 $_languageUid
 
 $_versionedUid
 
 $pid
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractDomainObject
 isPropertyDirty ($previousValue, $currentValue)
 

Detailed Description

Language model

Definition at line 22 of file lang/Classes/Domain/Model/Language.php.

Constructor & Destructor Documentation

__construct (   $locale = '',
  $label = '',
  $selected = false,
  $lastUpdate = null 
)

Constructor of the language model

Parameters
string$locale
string$label
bool$selected
int$lastUpdate

Definition at line 52 of file lang/Classes/Domain/Model/Language.php.

References Language\$label, Language\$lastUpdate, Language\$locale, and Language\$selected.

Member Function Documentation

getLabel ( )

Getter for the language

Returns
string

Definition at line 92 of file lang/Classes/Domain/Model/Language.php.

References Language\$label.

Referenced by Language\toArray().

getLastUpdate ( )
Returns
int

Definition at line 63 of file lang/Classes/Domain/Model/Language.php.

References Language\$lastUpdate.

Referenced by Language\toArray().

getLocale ( )

Getter for the locale

Returns
string

Definition at line 113 of file lang/Classes/Domain/Model/Language.php.

References Language\$locale.

Referenced by Language\toArray().

getSelected ( )

Getter for the selected

Returns
bool

Definition at line 134 of file lang/Classes/Domain/Model/Language.php.

References Language\$selected.

Referenced by Language\toArray().

setLabel (   $language)

Setter for the language

Parameters
string$languagethe label of the language
Returns
void

Definition at line 82 of file lang/Classes/Domain/Model/Language.php.

setLastUpdate (   $lastUpdate)
Parameters
int$lastUpdate

Definition at line 71 of file lang/Classes/Domain/Model/Language.php.

References Language\$lastUpdate.

setLocale (   $locale)

Setter for the locale

Parameters
string$localethe locale for the language like da, nl or de
Returns
void

Definition at line 103 of file lang/Classes/Domain/Model/Language.php.

References Language\$locale.

setSelected (   $selected)

Setter for the selected

Parameters
bool$selectedwhether the language is available or not
Returns
void

Definition at line 124 of file lang/Classes/Domain/Model/Language.php.

References Language\$selected.

toArray ( )

Returns an array represetation of current model

Returns
array The properties

Definition at line 144 of file lang/Classes/Domain/Model/Language.php.

References Language\getLabel(), Language\getLastUpdate(), Language\getLocale(), and Language\getSelected().

Member Data Documentation

$label = ''
protected
$lastUpdate
protected
$locale = ''
protected
$selected = false
protected