class LocalizedFields extends AbstractModel

Class LocalizedFields

Constants

STRICT_DISABLED

STRICT_ENABLED

Properties

array $items
array $fields
AbstractModel $object

Methods

static 
setGetFallbackValues( bool $getFallbackValues)

No description

static  bool
getGetFallbackValues()

No description

static  bool
isStrictMode()

No description

static 
setStrictMode( bool $strictMode)

No description

static  bool
doGetFallbackValues()

No description

__construct($fields, null $items = null)

LocalizedFields constructor.

addItem($item)

No description

setItems( array $items)

No description

array
getItems()

No description

setFields( array $fields)

No description

array
getFields()

No description

setObject( AbstractModel $object)

No description

getObject()

No description

string
getLanguage( null $language = null)

No description

bool
languageExists($language)

No description

mixed
getLocalizedValue($name, null $language = null, bool $ignoreFallbackLanguage = false)

Get Localized Value.

setLocalizedValue($name, $value, null $language = null)

Set Localized Value.

array
__sleep()

No description

Details

at line line 58
static setGetFallbackValues( bool $getFallbackValues)

Parameters

bool $getFallbackValues

at line line 66
static bool getGetFallbackValues()

Return Value

bool

at line line 74
static bool isStrictMode()

Return Value

bool

at line line 82
static setStrictMode( bool $strictMode)

Parameters

bool $strictMode

at line line 90
static bool doGetFallbackValues()

Return Value

bool

at line line 101
__construct($fields, null $items = null)

LocalizedFields constructor.

Parameters

$fields
null $items

at line line 113
addItem($item)

Parameters

$item

at line line 121
setItems( array $items)

Parameters

array $items

at line line 129
array getItems()

Return Value

array

at line line 137
setFields( array $fields)

Parameters

array $fields

at line line 145
array getFields()

Return Value

array

at line line 153
setObject( AbstractModel $object)

Parameters

AbstractModel $object

at line line 161
AbstractModel getObject()

Return Value

AbstractModel

at line line 173
string getLanguage( null $language = null)

Parameters

null $language

Return Value

string

Exceptions

Exception

at line line 196
bool languageExists($language)

Parameters

$language

Return Value

bool

at line line 210
mixed getLocalizedValue($name, null $language = null, bool $ignoreFallbackLanguage = false)

Get Localized Value.

Parameters

$name
null $language
bool $ignoreFallbackLanguage

Return Value

mixed

at line line 244
setLocalizedValue($name, $value, null $language = null)

Set Localized Value.

Parameters

$name
$value
null $language

Exceptions

Exception

at line line 263
array __sleep()

Return Value

array