1 | <?php |
||
26 | class vCardFormat extends AbstractFormat |
||
27 | { |
||
28 | use EmailTrait; |
||
29 | use UrlTrait; |
||
30 | |||
31 | /** |
||
32 | * @var string the name |
||
33 | */ |
||
34 | public $name; |
||
35 | /** |
||
36 | * @var string the full name |
||
37 | */ |
||
38 | public $fullName; |
||
39 | /** |
||
40 | * @var string the address |
||
41 | */ |
||
42 | public $address; |
||
43 | /** |
||
44 | * @var string the nickname |
||
45 | */ |
||
46 | public $nickName; |
||
47 | /** |
||
48 | * @var string the work phone |
||
49 | */ |
||
50 | public $workPhone; |
||
51 | /** |
||
52 | * @var string the home phone |
||
53 | */ |
||
54 | public $homePhone; |
||
55 | /** |
||
56 | * @var string a date in the format YYYY-MM-DD or ISO 860 |
||
57 | */ |
||
58 | public $birthday; |
||
59 | /** |
||
60 | * @var string a date in the format YYYY-MM-DD or ISO 860 |
||
61 | */ |
||
62 | public $anniversary; |
||
63 | /** |
||
64 | * @var string the gender |
||
65 | */ |
||
66 | public $gender; |
||
67 | /** |
||
68 | * @var string the categories. A list of "tags" that can be used to describe the object represented by this vCard. |
||
69 | * e.g., developer,designer,climber,swimmer |
||
70 | */ |
||
71 | public $categories; |
||
72 | /** |
||
73 | * @var string the instant messaging and presence protocol (instant messenger id) |
||
74 | */ |
||
75 | public $impp; |
||
76 | /** |
||
77 | * @var string the photo |
||
78 | */ |
||
79 | public $photo; |
||
80 | /** |
||
81 | * @var string the role e.g., Executive |
||
82 | */ |
||
83 | public $role; |
||
84 | /** |
||
85 | * @var string the name and optionally the unit(s) of the organization |
||
86 | * associated with the vCard object. This property is based on the X.520 Organization Name |
||
87 | * attribute and the X.520 Organization Unit attribute. |
||
88 | */ |
||
89 | public $organization; |
||
90 | /** |
||
91 | * @var string notes |
||
92 | */ |
||
93 | public $note; |
||
94 | /** |
||
95 | * @var string language of the user |
||
96 | */ |
||
97 | public $lang; |
||
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getText() |
||
128 | |||
129 | /** |
||
130 | * @throws \yii\base\InvalidConfigException |
||
131 | * @return string the formatted photo. Makes sure is of the right image extension. |
||
132 | */ |
||
133 | protected function getFormattedPhoto() |
||
147 | } |
||
148 |