[sync] patches 3/2 and counting...
Karsten Fourmont
fourmont at gmx.de
Tue Jul 13 05:13:15 PDT 2004
argh... .php files don't go through, either. So here with .txt extension.
vnote.php goes to framework/iCalendar/iCalendar/
Karsten
-------------- next part --------------
<?php
/**
* Class representing vNotes.
*
* $Horde: framework/iCalendar/iCalendar/vnote.php,v 1.11 2004/03/04 21:25:43 chuck Exp $
*
* Copyright 2003-2004 Mike Cochrane <mike at graftonhall.co.nz>
*
* 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 Karsten Fourmont <fourmont at gmx.de>
* @version $Revision: 1.11 $
* @package Horde_iCalendar
*/
require_once('Horde/iCalendar.php');
class Horde_iCalendar_vnote extends Horde_iCalendar {
function Horde_iCalendar_vnote(&$container)
{
$this->_container = &$container;
}
function getType()
{
return 'vNote';
}
function parsevCalendar($data)
{
return parent::parsevCalendar($data, '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') . $this->_newline;
}
}
More information about the sync
mailing list