Mercurial > hg > rc1
comparison vendor/sabre/vobject/lib/Property/Unknown.php @ 7:430dbd5346f7
vendor sabre as distributed
author | Charlie Root |
---|---|
date | Sat, 13 Jan 2018 09:06:10 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6:cec75ba50afc | 7:430dbd5346f7 |
---|---|
1 <?php | |
2 | |
3 namespace Sabre\VObject\Property; | |
4 | |
5 use | |
6 Sabre\VObject\Property, | |
7 Sabre\VObject\Component, | |
8 Sabre\VObject\Parser\MimeDir, | |
9 Sabre\VObject\Document; | |
10 | |
11 /** | |
12 * Unknown property | |
13 * | |
14 * This object represents any properties not recognized by the parser. | |
15 * This type of value has been introduced by the jCal, jCard specs. | |
16 * | |
17 * @copyright Copyright (C) 2011-2015 fruux GmbH (https://fruux.com/). | |
18 * @author Evert Pot (http://evertpot.com/) | |
19 * @license http://sabre.io/license/ Modified BSD License | |
20 */ | |
21 class Unknown extends Text { | |
22 | |
23 /** | |
24 * Returns the value, in the format it should be encoded for json. | |
25 * | |
26 * This method must always return an array. | |
27 * | |
28 * @return array | |
29 */ | |
30 public function getJsonValue() { | |
31 | |
32 return array($this->getRawMimeDirValue()); | |
33 | |
34 } | |
35 | |
36 /** | |
37 * Returns the type of value. | |
38 * | |
39 * This corresponds to the VALUE= parameter. Every property also has a | |
40 * 'default' valueType. | |
41 * | |
42 * @return string | |
43 */ | |
44 public function getValueType() { | |
45 | |
46 return "UNKNOWN"; | |
47 | |
48 } | |
49 | |
50 } |