static void
HttpDateFormat
()
static void
iCalFooter
()
static void
iCalHeader
()
static void
SqlDateFormat
()
static void
SqlDurationFormat
()
static void
SqlUTCFormat
()
iCalendar
iCalendar
( $args)
void
Add
(string $key, string $value, [string $parameters = null])
-
string
$key: The property key
-
string
$value: The property value
-
string
$parameters: Any parameters to set for the property, as an array of key/value pairs
-
iCalComponent
$new_component: The new component to append to the set
boolean
ApplyFilter
(array $filter, mixed $value)
-
array
$filter: An array of XMLElement defining the filter(s)
-
mixed
$value: Either a string which is the single property, or an array of lines, for the component.
Build the iCalendar object from a text string which is a single iCalendar resource
void
BuildFromText
( $icalendar)
void
ClearComponents
([string $type = null])
-
string
$type: The type of component - omit for all components
Do what must be done with time zones from on file. Attempt to turn them into something that PostgreSQL can understand...
void
DealWithTimeZones
()
An array of property names that we should always want when rendering an iCalendar
void
DefaultPropertyList
()
array
ExtractProperty
(array $component, string $type, [ $count = 9999])
-
array
$component: An array of lines of this component
-
string
$type: The type of parameter
-
$count
array
ExtractSubComponent
(array $component, string $type, [int $count = 9999])
-
array
$component: The component to be parsed
-
string
$type: The type of sub-components to be extracted
-
int
$count: The number of sub-components to extract (default: 9999)
Get the value of a property in the first non-VTIMEZONE
void
Get
( $key)
array
GetComponents
([string $type = null], [boolean $normal_match = true])
-
string
$type: The type to match (default: All)
-
boolean
$normal_match: Set to false to invert the match (default: true)
A function to extract the contents of a BEGIN:SOMETHING to END:SOMETHING (perhaps multiply) and return just that bit (or, of course, those bits :-)
string
JustThisBitPlease
( $type, [ $count = 1])
void
MaskComponents
(array $keep)
-
array
$keep: An array of component types to be kept
Function to parse lines from BEGIN:SOMETHING to END:SOMETHING into a nested array structure
arrayref
&ParseSomeLines
( $type)
void
Render
([boolean $as_calendar = true], [string $type = null], [array $restrict_properties = null])
-
boolean
$as_calendar: Whether or not to wrap the event in a VCALENDAR
-
string
$type: The type of iCalendar object (VEVENT, VTODO, VFREEBUSY etc.)
-
array
$restrict_properties: The names of the properties we want in our rendered result.
void
RFC2445ContentEscape
(string $name, string $value)
-
string
$name: The incoming name[;param] prefixing the string.
-
string
$value: The incoming string to be escaped.
Returns a content string with the RFC2445 escaping removed
string
RFC2445ContentUnescape
(string $escaped)
-
string
$escaped: The incoming string to be escaped.
Set the value of a property
void
Set
( $key, $value)
void
SetComponents
(array $new_component, [string $type = null])
-
string
$type: The type of components to be replaced. Defaults to null, which means all components will be replaced.
-
array
$new_component: of iCalComponent $new_components The new components to replace the existing ones
boolean
TestFilter
( $filters, array $filter)
-
array
$filter: An array of XMLElement defining the filter
-
$filters