egroupware/phpgwapi/inc/horde/Horde/iCalendar/vnote.php

50 lines
1.3 KiB
PHP
Raw Normal View History

2005-06-19 21:00:58 +02:00
<?php
require_once EGW_API_INC.'/horde/Horde/iCalendar.php';
2005-06-19 21:00:58 +02:00
/**
* Class representing vNotes.
*
* $Horde: framework/iCalendar/iCalendar/vnote.php,v 1.3.10.9 2008/07/03 08:42:58 jan Exp $
2005-06-19 21:00:58 +02:00
*
* Copyright 2003-2008 The Horde Project (http://www.horde.org/)
2005-06-19 21:00:58 +02:00
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Mike Cochrane <mike@graftonhall.co.nz>
2005-06-19 21:00:58 +02:00
* @author Karsten Fourmont <fourmont@gmx.de>
* @package Horde_iCalendar
*/
class Horde_iCalendar_vnote extends Horde_iCalendar {
function Horde_iCalendar_vnote($version = '1.1')
2005-06-19 21:00:58 +02:00
{
return parent::Horde_iCalendar($version);
2005-06-19 21:00:58 +02:00
}
function getType()
2005-06-19 21:00:58 +02:00
{
return 'vNote';
2005-06-19 21:00:58 +02:00
}
/**
* Unlike vevent and vtodo, a vnote is normally not enclosed in an
* iCalendar container. (BEGIN..END)
*/
function exportvCalendar()
{
$requiredAttributes['BODY'] = '';
$requiredAttributes['VERSION'] = '1.1';
foreach ($requiredAttributes as $name => $default_value) {
if (is_a($this->getattribute($name), 'PEAR_Error')) {
$this->setAttribute($name, $default_value);
}
}
return $this->_exportvData('VNOTE');
2005-06-19 21:00:58 +02:00
}
}