modules/SNIP/iCalParser.php
\Event
\iCalendar
Methods

cleanEmail(
string $var
)
:
voidClean up email - uppercase and remove mailto: prefix
| Name | Type | Description |
|---|---|---|
| $var | string |

createSugarEvents(
\SugarBean $parent
=
NULL
)
:
voidCreate Sugar meetings from calendar events
| Name | Type | Description |
|---|---|---|
| $parent | \SugarBean | related object to associate with meetings |
\vAlarm
Base class for all vObjects
- Parent(s)
- \vBasic
Properties

$parent= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \vBasic::$$parent

$properties= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$properties

$stack= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$stack
Methods

getStack(
)
:
ARRAYreturns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object
Inherited from: \vBasic::getStack()| Type | Description |
|---|---|
| ARRAY | of events |

parseDate(
object $key, object $date
)
:
\dateTakes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string
Inherited from: \vBasic::parseDate()| Name | Type | Description |
|---|---|---|
| $key | object |
|
| $date | object |
|
| Type | Description |
|---|---|
| \date | formated string (Y-m-d H:i:s) |

process(
object $key, object $value
)
:
void
| Name | Type | Description |
|---|---|---|
| $key | object | |
| $value | object |

toVCalDate(
STRING $date
)
:
STRINGTakes in a Sugar Formatted date (Y-m-d H:i:s) and changes it to a VCal Formatted one (Ymd\THis\Z)
Inherited from: \vBasic::toVCalDate()| Name | Type | Description |
|---|---|---|
| $date | STRING |
|
| Type | Description |
|---|---|
| STRING | date - vCal Formatted |
\vBasic
Base class for all vObjects
- Children
- \vEvent
- \vAlarm
- \vTimeZone
- \vCalendar
Properties
Methods

generateVCal(
)
:
STRINGreturns the VCal String for the given object
| Type | Description |
|---|---|
| STRING |

getProperties(
)
:
ARRAYreturns the properties for the given object
| Type | Description |
|---|---|
| ARRAY | of properties |

getStack(
)
:
ARRAYreturns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object
| Type | Description |
|---|---|
| ARRAY | of events |

parseDate(
object $key, object $date
)
:
\dateTakes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string
| Name | Type | Description |
|---|---|---|
| $key | object |
|
| $date | object |
|
| Type | Description |
|---|---|
| \date | formated string (Y-m-d H:i:s) |

process(
object $key, object $value
)
:
voiddefault process action is to just set the properties
| Name | Type | Description |
|---|---|---|
| $key | object | |
| $value | object |
\vCalendar
Calendar events set class
- Parent(s)
- \vBasic
Properties

$parent= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \vBasic::$$parent
Methods

addEvent(
\SugarEvent $event
)
:
voidadd a SugarEvent to the vCalendar Object
| Name | Type | Description |
|---|---|---|
| $event | \SugarEvent |

generateVCal(
)
:
STRINGGenerates the VCalendar format for this object
| Type | Description |
|---|---|
| STRING |

getStack(
)
:
ARRAYreturns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object
Inherited from: \vBasic::getStack()| Type | Description |
|---|---|
| ARRAY | of events |

parseDate(
object $key, object $date
)
:
\dateTakes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string
Inherited from: \vBasic::parseDate()| Name | Type | Description |
|---|---|---|
| $key | object |
|
| $date | object |
|
| Type | Description |
|---|---|
| \date | formated string (Y-m-d H:i:s) |

process(
object $key, object $value
)
:
parses the vCalendar
| Name | Type | Description |
|---|---|---|
| $key | object | |
| $value | object |

toVCalDate(
STRING $date
)
:
STRINGTakes in a Sugar Formatted date (Y-m-d H:i:s) and changes it to a VCal Formatted one (Ymd\THis\Z)
Inherited from: \vBasic::toVCalDate()| Name | Type | Description |
|---|---|---|
| $date | STRING |
|
| Type | Description |
|---|---|
| STRING | date - vCal Formatted |
\vEvent
Base class for all vObjects
- Parent(s)
- \vBasic
- Children
- \vToDo
- \vJournal
- \vFreeBusy
Properties

$parent= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \vBasic::$$parent

$properties= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$properties

$stack= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$stack
Methods

getStack(
)
:
ARRAYreturns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object
Inherited from: \vBasic::getStack()| Type | Description |
|---|---|
| ARRAY | of events |

parseAttendee(
string $key, string $value
)
:
arrayParse attendee string into key/value pairs
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | string |
| Type | Description |
|---|---|
| array | key/value pairs contanding attendee information |

parseDate(
object $key, object $date
)
:
\dateTakes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string
Inherited from: \vBasic::parseDate()| Name | Type | Description |
|---|---|---|
| $key | object |
|
| $date | object |
|
| Type | Description |
|---|---|
| \date | formated string (Y-m-d H:i:s) |

process(
object $key, object $value
)
:
voidHandles the parsing of the vCalendar
| Name | Type | Description |
|---|---|---|
| $key | object | |
| $value | object |

setEvent(
object $event
)
:
converts a Sugar Event into a vEvent
| Name | Type | Description |
|---|---|---|
| $event | object |

toVCalDate(
STRING $date
)
:
STRINGTakes in a Sugar Formatted date (Y-m-d H:i:s) and changes it to a VCal Formatted one (Ymd\THis\Z)
Inherited from: \vBasic::toVCalDate()| Name | Type | Description |
|---|---|---|
| $date | STRING |
|
| Type | Description |
|---|---|
| STRING | date - vCal Formatted |
\vFreeBusy
Base class for all vObjects
Properties

$parent= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \vBasic::$$parent
- Inherited_from
- \vEvent::$$parent

$properties= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$properties
- Inherited_from
- \vEvent::$$properties

$stack= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$stack
- Inherited_from
- \vEvent::$$stack
Methods

getProperties(
)
:
ARRAYreturns the properties for the given object
Inherited from: \vBasic::getProperties()\vEvent::getProperties()| Type | Description |
|---|---|
| ARRAY | of properties |

getStack(
)
:
ARRAYreturns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object
Inherited from: \vBasic::getStack()\vEvent::getStack()| Type | Description |
|---|---|
| ARRAY | of events |

parseAttendee(
string $key, string $value
)
:
array
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | string |
| Type | Description |
|---|---|
| array | key/value pairs contanding attendee information |

parseDate(
object $key, object $date
)
:
\dateTakes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string
Inherited from: \vBasic::parseDate()\vEvent::parseDate()| Name | Type | Description |
|---|---|---|
| $key | object |
|
| $date | object |
|
| Type | Description |
|---|---|
| \date | formated string (Y-m-d H:i:s) |

process(
object $key, object $value
)
:
void
| Name | Type | Description |
|---|---|---|
| $key | object | |
| $value | object |

toVCalDate(
STRING $date
)
:
STRINGTakes in a Sugar Formatted date (Y-m-d H:i:s) and changes it to a VCal Formatted one (Ymd\THis\Z)
Inherited from: \vBasic::toVCalDate()\vEvent::toVCalDate()| Name | Type | Description |
|---|---|---|
| $date | STRING |
|
| Type | Description |
|---|---|
| STRING | date - vCal Formatted |
\vJournal
Base class for all vObjects
Properties

$parent= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \vBasic::$$parent
- Inherited_from
- \vEvent::$$parent

$properties= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$properties
- Inherited_from
- \vEvent::$$properties

$stack= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$stack
- Inherited_from
- \vEvent::$$stack
Methods

getProperties(
)
:
ARRAYreturns the properties for the given object
Inherited from: \vBasic::getProperties()\vEvent::getProperties()| Type | Description |
|---|---|
| ARRAY | of properties |

getStack(
)
:
ARRAYreturns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object
Inherited from: \vBasic::getStack()\vEvent::getStack()| Type | Description |
|---|---|
| ARRAY | of events |

parseAttendee(
string $key, string $value
)
:
array
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | string |
| Type | Description |
|---|---|
| array | key/value pairs contanding attendee information |

parseDate(
object $key, object $date
)
:
\dateTakes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string
Inherited from: \vBasic::parseDate()\vEvent::parseDate()| Name | Type | Description |
|---|---|---|
| $key | object |
|
| $date | object |
|
| Type | Description |
|---|---|
| \date | formated string (Y-m-d H:i:s) |

process(
object $key, object $value
)
:
void
| Name | Type | Description |
|---|---|---|
| $key | object | |
| $value | object |

toVCalDate(
STRING $date
)
:
STRINGTakes in a Sugar Formatted date (Y-m-d H:i:s) and changes it to a VCal Formatted one (Ymd\THis\Z)
Inherited from: \vBasic::toVCalDate()\vEvent::toVCalDate()| Name | Type | Description |
|---|---|---|
| $date | STRING |
|
| Type | Description |
|---|---|
| STRING | date - vCal Formatted |
\vTimeZone
Base class for all vObjects
- Parent(s)
- \vBasic
Properties

$parent= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \vBasic::$$parent

$properties= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$properties

$stack= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$stack
Methods

getStack(
)
:
ARRAYreturns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object
Inherited from: \vBasic::getStack()| Type | Description |
|---|---|
| ARRAY | of events |

guessTimezone(
string $tz
)
:
\DateTimeZoneGuess custom timezone by name
| Name | Type | Description |
|---|---|---|
| $tz | string | TZ name |
| Type | Description |
|---|---|
| \DateTimeZone |

parseDate(
object $key, object $date
)
:
\dateTakes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string
Inherited from: \vBasic::parseDate()| Name | Type | Description |
|---|---|---|
| $key | object |
|
| $date | object |
|
| Type | Description |
|---|---|
| \date | formated string (Y-m-d H:i:s) |

process(
string $key, string $value
)
:
voidProcess TimeZone tags
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | string |

toVCalDate(
STRING $date
)
:
STRINGTakes in a Sugar Formatted date (Y-m-d H:i:s) and changes it to a VCal Formatted one (Ymd\THis\Z)
Inherited from: \vBasic::toVCalDate()| Name | Type | Description |
|---|---|---|
| $date | STRING |
|
| Type | Description |
|---|---|
| STRING | date - vCal Formatted |
\vToDo
Base class for all vObjects
Properties

$parent= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \vBasic::$$parent
- Inherited_from
- \vEvent::$$parent

$properties= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$properties
- Inherited_from
- \vEvent::$$properties

$stack= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \vBasic::$$stack
- Inherited_from
- \vEvent::$$stack
Methods

getProperties(
)
:
ARRAYreturns the properties for the given object
Inherited from: \vBasic::getProperties()\vEvent::getProperties()| Type | Description |
|---|---|
| ARRAY | of properties |

getStack(
)
:
ARRAYreturns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object
Inherited from: \vBasic::getStack()\vEvent::getStack()| Type | Description |
|---|---|
| ARRAY | of events |

parseAttendee(
string $key, string $value
)
:
array
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | string |
| Type | Description |
|---|---|
| array | key/value pairs contanding attendee information |

parseDate(
object $key, object $date
)
:
\dateTakes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string
Inherited from: \vBasic::parseDate()\vEvent::parseDate()| Name | Type | Description |
|---|---|---|
| $key | object |
|
| $date | object |
|
| Type | Description |
|---|---|
| \date | formated string (Y-m-d H:i:s) |

process(
object $key, object $value
)
:
void
| Name | Type | Description |
|---|---|---|
| $key | object | |
| $value | object |

toVCalDate(
STRING $date
)
:
STRINGTakes in a Sugar Formatted date (Y-m-d H:i:s) and changes it to a VCal Formatted one (Ymd\THis\Z)
Inherited from: \vBasic::toVCalDate()\vEvent::toVCalDate()| Name | Type | Description |
|---|---|---|
| $date | STRING |
|
| Type | Description |
|---|---|
| STRING | date - vCal Formatted |