$value
$value : integer
Indicate which value type is expected.
Handles the creation date attribute.
Copyright 2011-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
$_factory : \Horde_Kolab_Format_Factory
The factory for any additional objects required.
load(string $name, $attributes, \DOMNode $parent_node, \Horde_Kolab_Format_Xml_Helper $helper, array $params = array()) : \DOMNode|boolean
Load the node value from the Kolab object.
string | $name | The name of the the attribute to be fetched. |
$attributes | ||
\DOMNode | $parent_node | The parent node of the node to be loaded. |
\Horde_Kolab_Format_Xml_Helper | $helper | A XML helper instance. |
array | $params | Additiona parameters for this parse operation. |
The named DOMNode or false if no node value was found.
loadNodeValue(\DOMNode $node, \Horde_Kolab_Format_Xml_Helper $helper, array $params = array()) : mixed|null
Load the value of a node.
\DOMNode | $node | Retrieve value for this node. |
\Horde_Kolab_Format_Xml_Helper | $helper | A XML helper instance. |
array | $params | Additiona parameters for this parse operation. |
The value or null if no value was found.
__construct(\Horde_Kolab_Format_Factory $factory)
Constructor
\Horde_Kolab_Format_Factory | $factory | The factory for any additional objects required. |
save(string $name, array $attributes, \DOMNode $parent_node, \Horde_Kolab_Format_Xml_Helper $helper, array $params = array()) : \DOMNode|boolean
Update the specified attribute.
string | $name | The name of the the attribute to be updated. |
array | $attributes | The data array that holds all attribute values. |
\DOMNode | $parent_node | The parent node of the node that should be updated. |
\Horde_Kolab_Format_Xml_Helper | $helper | A XML helper instance. |
array | $params | Additional parameters for this write operation. |
If converting the data to XML failed.
The new/updated child node or false if this failed.
saveNodeValue(string $name, mixed $value, \DOMNode $parent_node, \Horde_Kolab_Format_Xml_Helper $helper, array $params = array(), \DOMNode|NULL $old_node = false) : \DOMNode|boolean
Update the specified attribute.
string | $name | The name of the attribute to be updated. |
mixed | $value | The value to store. |
\DOMNode | $parent_node | The parent node of the node that should be updated. |
\Horde_Kolab_Format_Xml_Helper | $helper | A XML helper instance. |
array | $params | The parameters for this write operation. |
\DOMNode|NULL | $old_node | The previous value (or null if there is none). |
If converting the data to XML failed.
The new/updated child node or false if this failed.
loadMissing(string $name, array $params) : mixed
Load a default value for a node.
string | $name | The attribute name. |
array | $params | The parameters for the current operation. |
In case the attribute may not be missing or the default value was left undefined.
The default value.
generateWriteValue(string $name, array $attributes, array $params) : mixed
Generate the value that should be written to the node. Override in the extending classes.
string | $name | The name of the the attribute to be updated. |
array | $attributes | The data array that holds all attribute values. |
array | $params | The parameters for this write operation. |
The value to be written.
checkMissing(string $key, array $params, string $attribute)
Validate that the parameter array contains all required parameters.
string | $key | The parameter name. |
array | $params | The parameters. |
string | $attribute | The attribute name. |
In case required parameters are missing.