1<?php
2/**
3 * A dummy object type.
4 *
5 * PHP version 5
6 *
7 * @category   Kolab
8 * @package    Kolab_Format
9 * @subpackage UnitTests
10 * @author     Gunnar Wrobel <wrobel@pardus.de>
11 * @license    http://www.horde.org/licenses/lgpl21 LGPL 2.1
12 * @link       http://www.horde.org/libraries/Horde_Kolab_Format
13 */
14
15/**
16 * A dummy object type.
17 *
18 * Copyright 2007-2016 Horde LLC (http://www.horde.org/)
19 *
20 * See the enclosed file COPYING for license information (LGPL). If you
21 * did not receive this file, see http://www.horde.org/licenses/lgpl21.
22 *
23 * @category   Kolab
24 * @package    Kolab_Format
25 * @subpackage UnitTests
26 * @author     Gunnar Wrobel <wrobel@pardus.de>
27 * @license    http://www.horde.org/licenses/lgpl21 LGPL 2.1
28 * @link       http://www.horde.org/libraries/Horde_Kolab_Format
29 */
30class Horde_Kolab_Format_Xml_Dummy extends Horde_Kolab_Format_Xml
31{
32    /**
33     * Save the object creation date.
34     *
35     * @param DOMNode $node    The parent node to attach the child
36     *                         to.
37     * @param string  $name    The name of the node.
38     * @param mixed   $value   The value to store.
39     * @param boolean $missing Has the value been missing?
40     *
41     * @return DOMNode The new child node.
42     */
43    function _saveValue($node, $name, $value, $missing)
44    {
45        $result  ='';
46        $result .= $name . ': ';
47        $result .= $value;
48        if ($missing) {
49            $result .= ', missing';
50        }
51
52        return $this->_saveDefault($node,
53                                   $name,
54                                   $result,
55                                   array('type' => self::TYPE_STRING));
56    }
57}
58