PHP Class Horde_Kolab_Server_Object_Attribute_Decorator, horde

Copyright 2008-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Inheritance: implements Horde_Kolab_Server_Object_Attribute_Interface
显示文件 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_attribute The decorated attribute.

Public Methods

Method Description
__construct ( Horde_Kolab_Server_Object_Attribute_Interface $attribute ) Constructor
getAttribute ( ) : Horde_Kolab_Server_Structure_Attribute_Interface Return the internal attribute adapter.
getName ( ) : string Return the name of this attribute.
isEmpty ( array $changes ) : string Return if this attribute is undefined in the given data array.
update ( array $changes ) : array Return the new internal state for this attribute.
value ( ) : array Return the value of this attribute.

Method Details

__construct() public method

Constructor
public __construct ( Horde_Kolab_Server_Object_Attribute_Interface $attribute )
$attribute Horde_Kolab_Server_Object_Attribute_Interface The decorated attribute.

getAttribute() public method

Return the internal attribute adapter.
public getAttribute ( ) : Horde_Kolab_Server_Structure_Attribute_Interface
return Horde_Kolab_Server_Structure_Attribute_Interface The internal

getName() public method

Return the name of this attribute.
public getName ( ) : string
return string The name of this attribute.

isEmpty() public method

Return if this attribute is undefined in the given data array.
public isEmpty ( array $changes ) : string
$changes array The data array to test.
return string The name of this object.

update() public method

Return the new internal state for this attribute.
public update ( array $changes ) : array
$changes array The object data that should be updated.
return array The resulting internal state.

value() public method

Return the value of this attribute.
public value ( ) : array
return array The value(s) of this attribute.

Property Details

$_attribute protected_oe property

The decorated attribute.
protected $_attribute