Class vEvent

Description

A Class for handling Events on a calendar

Located in /vEvent.php (line 19)


	
			
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 55)

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 83)

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

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

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 188)

Get the value of a property

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

Put the value of a property

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

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

void Render ()
RFC2445ContentEscape (line 232)

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 204)

Returns a PostgreSQL Date Format string suitable for returning iCal dates

void SqlDateFormat ()
SqlDurationFormat (line 222)

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 213)

Returns a PostgreSQL Date Format string suitable for returning dates which

have been cast to UTC

void SqlUTCFormat ()

Documentation generated on Thu, 15 Apr 2010 20:23:07 +1200 by phpDocumentor 1.3.2