ePages 6.17.40 - DE_EPAGES/Object/API/Attributes/LocalizedAttribute.pm

Package DE_EPAGES::Object::API::Attributes::LocalizedAttribute

Implements localized attributes for objects (types LocalizedString, LocalizedFile).

Base
DE_EPAGES::Object::API::Attributes::DefaultAttribute

Functions

_getLocalizedAttributes
defaultValue

_getLocalizedAttributes

returns all localized attribute values of an object directly from the database, i.e. without using the object attribute cache.

Syntax
$hValues = $self->_getLocalizedAttributes( $Object )
Input
$Object (object)
object
Return
$hValues (ref.hash)
$hValues->{$AttributeName}->{$LanguageID} = $Value

defaultValue

Returns the default value for the attribute. If the stored value is undefined, getAttribute() will return the default value. If the default value is passed to setAttribute, it will delete the stored value.

Syntax
$Package->defaultValue( $Object, $Name, $LanguageID );
Input
$Object (object)
object
$Name (string)
attribute name
$LanguageID (int)
language id