Sitellite Application Framework
Class Tree         Index         All Elements

Class: vCalProperty

Source Location: Program_Root/Date/vCalendar/vCalProperty.php

Class Overview


vCalProperty contains individual properties for the vCal package.


Author(s)

Version

  • 1.2, 2002-09-25, $Id: vCalProperty.php,v 1.2 2005/07/06 15:30:56 lux Exp $

Copyright

  • Copyright (C) 2001-2003, Simian Systems Inc.

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 70]
vCalProperty contains individual properties for the vCal package.

New in 1.2:

  • Improved the output of array values and parameters.

1 <?php
2
3 $cal = new vCal ();
4
5 $cal->addProperty ('VERSION', '2.0');
6 $cal->addProperty ('PRODID', '-//Simian Systems//NONSGML Sitellite Application Framework//EN');
7
8 $event =& $cal->addEvent ('VEVENT');
9
10 $event->addProperty ('UID', 54321);
11 $event->addProperty ('ORGANIZER', 'MAILTO:bananaman@simian.ca');
12 $prop =& $event->addProperty ('ATTENDEE', 'MAILTO:bananaman@simian.ca');
13 $prop->addParameter ('RSVP', 'TRUE');
14
15 // start time is now
16 $event->addProperty ('DTSTART', date ('Ymd\THis\Z'));
17
18 // end time is the same time tomorrow
19 $event->addProperty ('DTEND', date ('Ymd\THis\Z', time () + 86400));
20
21 $event->addProperty ('SUMMARY', 'Party time!');
22 $event->addProperty ('LOCATION', 'My place');
23
24 echo $cal->write ();
25
26 ? >




Tags:

access:  public
version:  1.2, 2002-09-25, $Id: vCalProperty.php,v 1.2 2005/07/06 15:30:56 lux Exp $
license:  http://www.sitellite.org/index/license
copyright:  Copyright (C) 2001-2003, Simian Systems Inc.
author:  John Luxford <mailto:lux@simian.ca>


[ Top ]


Class Variables

$name =

[line 78]

The name of this property. Can be any of the valid vCalendar properties based on its placement within the document.



Tags:

access:  public

Type:   mixed


[ Top ]

$parameters = array ()

[line 95]

List of parameters in this event. All parameters are key/value pairs of strings.



Tags:

access:  public

Type:   mixed


[ Top ]

$value =

[line 86]

The value of this property.



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor vCalProperty [line 106]

vCalProperty vCalProperty( string $name, string $value, [array $parameters = array ()])

Constructor Method.



Tags:

access:  public


Parameters:

string   $name  
string   $value  
array   $parameters  

[ Top ]

method addParameter [line 120]

void addParameter( string $key, string $value)

Adds a parameter to the list.



Tags:

access:  public


Parameters:

string   $key  
string   $value  

[ Top ]

method write [line 131]

string write( )

Writes the property out in vCalendar format.



Tags:

access:  public


[ Top ]


Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:20:10 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2