3
* Class representing vNotes.
5
* Copyright 2003-2013 Horde LLC (http://www.horde.org/)
7
* See the enclosed file COPYING for license information (LGPL). If you
8
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
10
* @author Mike Cochrane <mike@graftonhall.co.nz>
11
* @author Karsten Fourmont <fourmont@gmx.de>
13
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
16
class Horde_Icalendar_Vnote extends Horde_Icalendar
19
* The component type of this class.
23
public $type = 'vNote';
28
public function __construct($version = '1.1')
30
parent::__construct($version);
34
* Sets the version of this component.
39
* @param string A float-like version string.
41
public function setVersion($version)
43
$this->_oldFormat = $version < 1;
44
$this->_version = $version;
48
* Unlike vevent and vtodo, a vnote is normally not enclosed in an
49
* iCalendar container. (BEGIN..END)
53
public function exportvCalendar()
55
$requiredAttributes['BODY'] = '';
56
$requiredAttributes['VERSION'] = '1.1';
58
foreach ($requiredAttributes as $name => $default_value) {
60
$this->getAttribute($name);
61
} catch (Horde_Icalendar_Exception $e) {
62
$this->setAttribute($name, $default_value);
66
return $this->_exportvData('VNOTE');