Class vEvent

Description

A Class for handling Events on a calendar

Located in /vEvent.php (line 18)


	
			
Method Summary
 vEvent vEvent ( $args)
 void BuildFromText ( $vevent)
 void Get ( $key)
 void Put ( $key,  $value)
 void Render ()
 void RFC2445ContentEscape (string $name, string $value)
 void SqlDateFormat ()
 void SqlUTCFormat ()
Methods
Constructor vEvent (line 54)

The constructor takes an array of args. If there is an element called 'vevent' then that will be parsed into the vEvent object. Otherwise the array elements are converted into properties of the vEvent object directly.

vEvent vEvent ( $args)
  • $args
BuildFromText (line 82)

Build the vEvent object from a text string which is a single VEVENT

  • var: string
void BuildFromText ( $vevent)
  • $vevent
DealWithTimeZones (line 162)

Do what must be done with time zones from on file. Attempt to turn them into something that PostgreSQL can understand...

void DealWithTimeZones ()
Get (line 187)

Get the value of a property

void Get ( $key)
  • $key
Put (line 195)

Put the value of a property

void Put ( $key,  $value)
  • $key
  • $value
Render (line 286)

Render the vEvent object as a text string which is a single VEVENT

void Render ()
RFC2445ContentEscape (line 231)

Returns a suitably escaped RFC2445 content string.

void RFC2445ContentEscape (string $name, string $value)
  • string $name: The incoming name[;param] prefixing the string.
  • string $value: The incoming string to be escaped.
SqlDateFormat (line 203)

Returns a PostgreSQL Date Format string suitable for returning iCal dates

void SqlDateFormat ()
SqlDurationFormat (line 221)

Returns a PostgreSQL Date Format string suitable for returning iCal durations

  • this doesn't work for negative intervals, but events should not have such!

void SqlDurationFormat ()
SqlUTCFormat (line 212)

Returns a PostgreSQL Date Format string suitable for returning dates which

have been cast to UTC

void SqlUTCFormat ()

Documentation generated on Tue, 18 Nov 2008 18:09:01 +1300 by phpDocumentor 1.3.2