1: <?php
2: /**
3: * Handles the phone type.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
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
12: */
13:
14: /**
15: * Handles the phone type.
16: *
17: * Copyright 2011-2012 Horde LLC (http://www.horde.org/)
18: *
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.
22: *
23: * @since Horde_Kolab_Format 1.1.0
24: *
25: * @category Kolab
26: * @package Kolab_Format
27: * @author Gunnar Wrobel <wrobel@pardus.de>
28: * @license http://www.horde.org/licenses/lgpl21 LGPL
29: * @link http://www.horde.org/libraries/Horde_Kolab_Format
30: */
31: class Horde_Kolab_Format_Xml_Type_PhoneType
32: extends Horde_Kolab_Format_Xml_Type_String
33: {
34: /**
35: * Indicate which value type is expected.
36: *
37: * @var int
38: */
39: protected $value = Horde_Kolab_Format_Xml::VALUE_DEFAULT;
40:
41: /**
42: * A default value if required.
43: *
44: * @var string
45: */
46: protected $default = '';
47:
48: /**
49: * Phone types
50: *
51: * @todo Check enum possibilities
52: *
53: * @var array
54: */
55: private $_phone_types = array(
56: 'business1',
57: 'business2',
58: 'businessfax',
59: 'callback',
60: 'car',
61: 'company',
62: 'home1',
63: 'home2',
64: 'homefax',
65: 'isdn',
66: 'mobile',
67: 'pager',
68: 'primary',
69: 'radio',
70: 'telex',
71: 'ttytdd',
72: 'assistant',
73: 'other',
74: );
75:
76: }
77: