3
* Handles event start and end dates.
8
* @package Kolab_Format
9
* @author Gunnar Wrobel <wrobel@pardus.de>
10
* @license http://www.horde.org/licenses/lgpl21 LGPL
11
* @link http://www.horde.org/libraries/Horde_Kolab_Format
15
* Handles event start and end dates.
17
* Copyright 2011-2013 Horde LLC (http://www.horde.org/)
19
* See the enclosed file COPYING for license information (LGPL). If you did not
20
* receive this file, see
21
* http://www.horde.org/licenses/lgpl21.
24
* @package Kolab_Format
25
* @author Gunnar Wrobel <wrobel@pardus.de>
26
* @license http://www.horde.org/licenses/lgpl21 LGPL
27
* @link http://www.horde.org/libraries/Horde_Kolab_Format
29
class Horde_Kolab_Format_Xml_Type_EventDateTime_V1
30
extends Horde_Kolab_Format_Xml_Type_DateTime_V1
33
* Indicate which value type is expected.
37
protected $value = Horde_Kolab_Format_Xml::VALUE_NOT_EMPTY;
40
* Load the value of a node.
42
* @param DOMNode $node Retrieve value for this node.
43
* @param Horde_Kolab_Format_Xml_Helper $helper A XML helper instance.
44
* @param array $params Additiona parameters for
45
* this parse operation.
47
* @return mixed|null The value or null if no value was found.
49
public function loadNodeValue(
51
Horde_Kolab_Format_Xml_Helper $helper,
55
$result = $helper->fetchNodeValue($node);
56
if (strlen($result) == 10) {
58
'date' => Horde_Kolab_Format_Date::readDate($result),
63
'date' => Horde_Kolab_Format_Date::readDateTime($result),