Unknown.php 1.0 KB

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