mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-05 22:30:42 +01:00
e667e168b4
svn merge ^/trunk/phpgwapi@27377 ^/branches/SyncML-1.2/phpgwapi .
50 lines
1.3 KiB
PHP
50 lines
1.3 KiB
PHP
<?php
|
|
|
|
require_once EGW_API_INC.'/horde/Horde/iCalendar.php';
|
|
|
|
/**
|
|
* Class representing vNotes.
|
|
*
|
|
* $Horde: framework/iCalendar/iCalendar/vnote.php,v 1.3.10.9 2008/07/03 08:42:58 jan Exp $
|
|
*
|
|
* Copyright 2003-2008 The Horde Project (http://www.horde.org/)
|
|
*
|
|
* 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>
|
|
* @author Karsten Fourmont <fourmont@gmx.de>
|
|
* @package Horde_iCalendar
|
|
*/
|
|
class Horde_iCalendar_vnote extends Horde_iCalendar {
|
|
|
|
function Horde_iCalendar_vnote($version = '1.1')
|
|
{
|
|
return parent::Horde_iCalendar($version);
|
|
}
|
|
|
|
function getType()
|
|
{
|
|
return 'vNote';
|
|
}
|
|
|
|
/**
|
|
* 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');
|
|
}
|
|
|
|
}
|