* @param string $product_id The ID that should be set as
* the iCalendar product id.
*
- * @return Horde_iCalendar The response object.
+ * @return Horde_Icalendar The response object.
*/
public function getIcalendarResponse(
Horde_Itip_Response_Type $type,
/**
* Returns the event as vEvent.
*
- * @return Horde_iCalendar_vevent The wrapped event.
+ * @return Horde_Icalendar_Vevent The wrapped event.
*/
public function getVevent();
* Return the response as an iCalendar vEvent object.
*
* @param Horde_Itip_Response_Type $type The response type.
- * @param Horde_iCalendar|boolean $vCal The parent container or false if not
+ * @param Horde_Icalendar|boolean $vCal The parent container or false if not
* provided.
*
* @return Horde_Icalendar_Vevent The response object.
public function testForCopiedDurationFromRequestToResponse()
{
- $vCal = new Horde_iCalendar();
- $inv = Horde_iCalendar::newComponent('VEVENT', $vCal);
+ $vCal = new Horde_Icalendar();
+ $inv = Horde_Icalendar::newComponent('VEVENT', $vCal);
$inv->setAttribute('METHOD', 'REQUEST');
$inv->setAttribute('UID', '1');
$inv->setAttribute('SUMMARY', 'Test Invitation');
* relevant access
* parameters.
*
- * @return Horde_iCalender The remote free/busy information.
+ * @return Horde_Icalender The remote free/busy information.
*/
function &_fetchRemote($servers, $access)
{
/**
* Store partial free/busy infomation in the cache file.
*
- * @param Horde_iCalendar $pvcal A reference to the data object.
+ * @param Horde_Icalendar $pvcal A reference to the data object.
*
* @return boolean|PEAR_Error True if successful.
*/
*
* @param boolean $extended Should the extended information be retrieved?
*
- * @return Horde_iCalendar|PEAR_Error The data retrieved from the cache file.
+ * @return Horde_Icalendar|PEAR_Error The data retrieved from the cache file.
*/
function &loadPVcal($extended)
{
/**
* Store free/busy infomation in the cache file.
*
- * @param Horde_iCalendar $vcal A reference to the data object.
+ * @param Horde_Icalendar $vcal A reference to the data object.
* @param array $mtimes A list of modification times for the
* partial free/busy cache times.
*
/**
* Load the free/busy information from the cache.
*
- * @return Horde_iCalendar|PEAR_Error The retrieved free/busy information.
+ * @return Horde_Icalendar|PEAR_Error The retrieved free/busy information.
*/
function &loadVcal()
{
/** Horde_Date */
require_once 'Horde/Date.php';
-/** Horde_iCalendar */
+/** Horde_Icalendar */
require_once 'Horde/Icalendar.php';
/**
/**
* Exports this event in iCalendar format.
*
- * @param Horde_Icalendar $calendar A Horde_iCalendar object that acts as
+ * @param Horde_Icalendar $calendar A Horde_Icalendar object that acts as
* a container.
*
* @return array An array of Horde_Icalendar_Vevent objects for this event.
require 'Horde/Date.php';
require 'Horde/Date/Recurrence.php';
require 'Horde/Util.php';
-require 'Horde/iCalendar.php';
+require 'Horde/Icalendar.php';
-$iCal = new Horde_iCalendar();
+$iCal = new Horde_Icalendar();
$iCal->parsevCalendar(file_get_contents(dirname(__FILE__) . '/fromicalendar.ics'));
$components = $iCal->getComponents();
-$iCal2 = new Horde_iCalendar();
+$iCal2 = new Horde_Icalendar();
define('KRONOLITH_BASE', dirname(__FILE__) . '/../..');
require KRONOLITH_BASE . '/lib/Kronolith.php';
require KRONOLITH_BASE . '/lib/Driver.php';
foreach ($components as $content) {
- if (is_a($content, 'Horde_iCalendar_vevent')) {
+ if (is_a($content, 'Horde_Icalendar_Vevent')) {
$event = new Kronolith_Event(new Driver);
$event->fromiCalendar($content);
echo $event->start->rfc3339DateTime() . "\n";
}
/* Check if we need to convert from iCalendar data into an array. */
- if (is_a($row, 'Horde_iCalendar_vnote')) {
+ if (is_a($row, 'Horde_Icalendar_vnote')) {
$row = $storage->fromiCalendar($row);
}
break;
case 'text/x-vnote':
- if (!is_a($content, 'Horde_iCalendar_vnote')) {
- require_once 'Horde/iCalendar.php';
- $iCal = new Horde_iCalendar();
+ if (!is_a($content, 'Horde_Icalendar_Vnote')) {
+ $iCal = new Horde_Icalendar();
if (!$iCal->parsevCalendar($content)) {
return PEAR::raiseError(_("There was an error importing the iCalendar data."));
}
default:
$ids = array();
foreach ($components as $content) {
- if (is_a($content, 'Horde_iCalendar_vnote')) {
+ if (is_a($content, 'Horde_Icalendar_Vnote')) {
$note = $storage->fromiCalendar($content);
$noteId = $storage->add($note['desc'],
$note['body'],
require_once 'Horde/iCalendar.php';
// Create the new iCalendar container.
- $iCal = new Horde_iCalendar('1.1');
+ $iCal = new Horde_Icalendar('1.1');
$iCal->setAttribute('VERSION', '1.1');
$iCal->setAttribute('PRODID', '-//The Horde Project//Mnemo ' . Mnemo::VERSION . '//EN');
$iCal->setAttribute('METHOD', 'PUBLISH');
return $storage->modify($memo['memo_id'], $storage->getMemoDescription($content), $content, null);
case 'text/x-vnote':
- if (!is_a($content, 'Horde_iCalendar_vnote')) {
- require_once 'Horde/iCalendar.php';
- $iCal = new Horde_iCalendar();
+ if (!is_a($content, 'Horde_Icalendar_Vnote')) {
+ $iCal = new Horde_Icalendar();
if (!$iCal->parsevCalendar($content)) {
return PEAR::raiseError(_("There was an error importing the iCalendar data."));
}
* Export this memo in iCalendar format.
*
* @param array memo the memo (hash array) to export
- * @param object vcal a Horde_iCalendar object that acts as container.
+ * @param object vcal a Horde_Icalendar object that acts as container.
*
- * @return object Horde_iCalendar_vnote object for this event.
+ * @return object Horde_Icalendar_Vnote object for this event.
*/
function toiCalendar($memo, &$calendar)
{
global $prefs;
- $vnote = &Horde_iCalendar::newComponent('vnote', $calendar);
+ $vnote = Horde_Icalendar::newComponent('vnote', $calendar);
$vnote->setAttribute('UID', $memo['uid']);
$vnote->setAttribute('BODY', $memo['body']);
}
/**
- * Create a memo (hash array) from a Horde_iCalendar_vnote object.
+ * Create a memo (hash array) from a Horde_Icalendar_Vnote object.
*
- * @param Horde_iCalendar_vnote $vnote The iCalendar data to update from.
+ * @param Horde_Icalendar_Vnote $vnote The iCalendar data to update from.
*
* @return array Memo (hash array) created from the vNote.
*/
exit;
case Horde_Data::EXPORT_ICALENDAR:
- $iCal = new Horde_iCalendar();
+ $iCal = new Horde_Icalendar();
$iCal->setAttribute(
'PRODID',
'-//The Horde Project//Nag ' . $registry->getVersion() . '//EN');
}
if (!is_array($row)) {
- if (!is_a($row, 'Horde_iCalendar_vtodo')) {
+ if (!is_a($row, 'Horde_Icalendar_Vtodo')) {
continue;
}
$task = new Nag_Task();
$ids = array();
foreach ($components as $content) {
- if ($content instanceof Horde_iCalendar_vtodo) {
+ if ($content instanceof Horde_Icalendar_Vtodo) {
$task = new Nag_Task();
$task->fromiCalendar($content);
if (isset($task->uid) &&
/**
* Exports this task in iCalendar format.
*
- * @param Horde_iCalendar $calendar A Horde_iCalendar object that acts as
+ * @param Horde_Icalendar $calendar A Horde_Icalendar object that acts as
* the container.
*
- * @return Horde_iCalendar_vtodo A vtodo component of this task.
+ * @return Horde_Icalendar_Vtodo A vtodo component of this task.
*/
function toiCalendar($calendar)
{
- $vTodo = Horde_iCalendar::newComponent('vtodo', $calendar);
+ $vTodo = Horde_Icalendar::newComponent('vtodo', $calendar);
$v1 = $calendar->getAttribute('VERSION') == '1.0';
$vTodo->setAttribute('UID', $this->uid);
if ($v1) {
$vTodo->setAttribute('AALARM', $this->due - $this->alarm * 60);
} else {
- $vAlarm = Horde_iCalendar::newComponent('valarm', $vTodo);
+ $vAlarm = Horde_Icalendar::newComponent('valarm', $vTodo);
$vAlarm->setAttribute('ACTION', 'DISPLAY');
$vAlarm->setAttribute('TRIGGER;VALUE=DURATION', '-PT' . $this->alarm . 'M');
$vTodo->addComponent($vAlarm);
}
/**
- * Creates a task from a Horde_iCalendar_vtodo object.
+ * Creates a task from a Horde_Icalendar_Vtodo object.
*
- * @param Horde_iCalendar_vtodo $vTodo The iCalendar data to update from.
+ * @param Horde_Icalendar_Vtodo $vTodo The iCalendar data to update from.
*/
function fromiCalendar($vTodo)
{