~ubuntu-branches/ubuntu/saucy/php-horde-kolab-format/saucy

« back to all changes in this revision

Viewing changes to Horde_Kolab_Format-2.0.3/lib/Horde/Kolab/Format/Xml/Type/PhoneType.php

  • Committer: Package Import Robot
  • Author(s): Mathieu Parent
  • Date: 2013-04-07 15:55:32 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130407155532-cserelt1ix1m9cs3
Tags: 2.0.3-1
New upstream version 2.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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-2013 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
 * @category Kolab
 
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
 
28
 */
 
29
class Horde_Kolab_Format_Xml_Type_PhoneType
 
30
extends Horde_Kolab_Format_Xml_Type_String
 
31
{
 
32
    /**
 
33
     * Indicate which value type is expected.
 
34
     *
 
35
     * @var int
 
36
     */
 
37
    protected $value = Horde_Kolab_Format_Xml::VALUE_DEFAULT;
 
38
 
 
39
    /**
 
40
     * A default value if required.
 
41
     *
 
42
     * @var string
 
43
     */
 
44
    protected $default = '';
 
45
 
 
46
    /**
 
47
     * Phone types
 
48
     *
 
49
     * @todo Check enum possibilities
 
50
     *
 
51
     * @var array
 
52
     */
 
53
    private $_phone_types = array(
 
54
        'business1',
 
55
        'business2',
 
56
        'businessfax',
 
57
        'callback',
 
58
        'car',
 
59
        'company',
 
60
        'home1',
 
61
        'home2',
 
62
        'homefax',
 
63
        'isdn',
 
64
        'mobile',
 
65
        'pager',
 
66
        'primary',
 
67
        'radio',
 
68
        'telex',
 
69
        'ttytdd',
 
70
        'assistant',
 
71
        'other',
 
72
    );
 
73
 
 
74
}