modules/SNIP/iCalParser.php
\Event
\iCalendar
Methods
cleanEmail(
string $var
)
:
void
Clean up email - uppercase and remove mailto: prefix
Name | Type | Description |
---|---|---|
$var | string |
createSugarEvents(
\SugarBean $parent
=
NULL
)
:
void
Create 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'
null
Details- 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(
)
:
ARRAY
returns 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
)
:
\date
Takes 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
)
:
STRING
Takes 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(
)
:
STRING
returns the VCal String for the given object
Type | Description |
---|---|
STRING |
getProperties(
)
:
ARRAY
returns the properties for the given object
Type | Description |
---|---|
ARRAY | of properties |
getStack(
)
:
ARRAY
returns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object
Type | Description |
---|---|
ARRAY | of events |
parseDate(
object $key, object $date
)
:
\date
Takes 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
)
:
void
default 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'
null
Details- Type
- n/a
- Inherited_from
- \vBasic::$$parent
Methods
addEvent(
\SugarEvent $event
)
:
void
add a SugarEvent to the vCalendar Object
Name | Type | Description |
---|---|---|
$event | \SugarEvent |
generateVCal(
)
:
STRING
Generates the VCalendar format for this object
Type | Description |
---|---|
STRING |
getStack(
)
:
ARRAY
returns 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
)
:
\date
Takes 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
)
:
STRING
Takes 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'
null
Details- 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(
)
:
ARRAY
returns 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
)
:
array
Parse 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
)
:
\date
Takes 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
Handles 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
)
:
STRING
Takes 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'
null
Details- 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(
)
:
ARRAY
returns the properties for the given object
Inherited from: \vBasic::getProperties()\vEvent::getProperties()Type | Description |
---|---|
ARRAY | of properties |
getStack(
)
:
ARRAY
returns 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
)
:
\date
Takes 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
)
:
STRING
Takes 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'
null
Details- 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(
)
:
ARRAY
returns the properties for the given object
Inherited from: \vBasic::getProperties()\vEvent::getProperties()Type | Description |
---|---|
ARRAY | of properties |
getStack(
)
:
ARRAY
returns 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
)
:
\date
Takes 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
)
:
STRING
Takes 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'
null
Details- 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(
)
:
ARRAY
returns 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
)
:
\DateTimeZone
Guess custom timezone by name
Name | Type | Description |
---|---|---|
$tz | string | TZ name |
Type | Description |
---|---|
\DateTimeZone |
parseDate(
object $key, object $date
)
:
\date
Takes 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
)
:
void
Process TimeZone tags
Name | Type | Description |
---|---|---|
$key | string | |
$value | string |
toVCalDate(
STRING $date
)
:
STRING
Takes 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'
null
Details- 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(
)
:
ARRAY
returns the properties for the given object
Inherited from: \vBasic::getProperties()\vEvent::getProperties()Type | Description |
---|---|
ARRAY | of properties |
getStack(
)
:
ARRAY
returns 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
)
:
\date
Takes 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
)
:
STRING
Takes 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 |