ePages 7.17.0 - DE_EPAGES/Object/API/Attributes/DefaultAttribute.pm

Package DE_EPAGES::Object::API::Attributes::DefaultAttribute

Implements scalar attributes for objects (types Boolean,DateTime,Date,Time,Float,Integer,Money,String).

Base
DE_EPAGES::Object::API::BaseAttribute

Functions

_getAttributesByType
defaultValue

_getAttributesByType

returns all attribute values of an object with a given type directly from the database, i.e. without using the cache and not considering any default any values.

Syntax
$hValues = $self->_getAttributesByType( $Object, $Type )
Input
$Object (object)
object
$Type (string)
attribute type name
Return
$hValues (ref.hash)
attribute name => value hash

defaultValue

Returns the attribute value unless a value is actually stored in the database. Don't call this function directly. Use $Object->get() instead.

Syntax
$Value = $Package->defaultValue( $Attribute, $Type );
Input
$Attribute (object)
attribute object
$Type (string)
attribute type name
Return
$DefaultValue ($Type (the attribute type))
default attribute value