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