modules/SNIP/iCalParser.php

Show: inherited
Table of Contents

\Event

Package: SugarCRM

Stub class for the future of SugarEvents

Properties

Propertypublic  $attendees= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $date_created= ''
Details
Type
n/a
Propertypublic  $date_end= ''
Details
Type
n/a
Propertypublic  $date_modified= ''
Details
Type
n/a
Propertypublic  $date_start= ''
Details
Type
n/a
Propertypublic  $description= ''
Details
Type
n/a
Propertypublic  $location= ''
Details
Type
n/a
Propertypublic  $name= ''
Details
Type
n/a
Propertypublic  $sequence= ''
Details
Type
n/a
Propertypublic  $status= ''
Details
Type
n/a
Propertypublic  $type= ''Event''
Default value'Event'Details
Type
n/a
Propertypublic  $uid= ''
Details
Type
n/a
Propertypublic  $url= ''
Details
Type
n/a

\iCalendar

Package:

Methods

methodpubliccleanEmail( string $var ) : void

Clean up email - uppercase and remove mailto: prefix

Parameters
Name Type Description
$var string
methodpubliccreateSugarEvents( \SugarBean $parent = NULL ) : void

Create Sugar meetings from calendar events

Parameters
Name Type Description
$parent \SugarBean

related object to associate with meetings

methodpublicparse( STRING $str ) :

parses a STRING represeting an iCalendar (vCalendar 2)

Parameters
Name Type Description
$str STRING
  • iCalendar formatted String

\vAlarm

Package:

Base class for all vObjects

Parent(s)
\vBasic

Properties

Propertyprotected  $parent= 'null'
inheritedInherited from: \vBasic::$$parent
Default valuenullDetails
Type
n/a
Inherited_from
\vBasic::$$parent  
Propertyprotected  $properties= 'array()'
inheritedInherited from: \vBasic::$$properties
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$properties  
Propertyprotected  $stack= 'array()'
inheritedInherited from: \vBasic::$$stack
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$stack  

Methods

methodpublic__construct( ) : void
inherited

Inherited from: \vBasic::__construct()
methodpublicgenerateVCal( ) : STRING
inherited

returns the VCal String for the given object

Inherited from: \vBasic::generateVCal()
Returns
Type Description
STRING
methodpublicgetProperties( ) : ARRAY
inherited

returns the properties for the given object

Inherited from: \vBasic::getProperties()
Returns
Type Description
ARRAY of properties
methodpublicgetStack( ) : ARRAY
inherited

returns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object

Inherited from: \vBasic::getStack()
Returns
Type Description
ARRAY of events
methodpublicparseDate( object $key, object $date ) : \date
inherited

Takes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string

Inherited from: \vBasic::parseDate()
Parameters
Name Type Description
$key object
  • this is parsed to determine any timezone information
$date object
  • the date in vCal format (Ymd\THis\Z)
Returns
Type Description
\date formated string (Y-m-d H:i:s)
methodpublicprocess( object $key, object $value ) : void
inherited

default process action is to just set the properties

Inherited from: \vBasic::process()
Parameters
Name Type Description
$key object
$value object
methodpublictoVCalDate( STRING $date ) : STRING
inherited

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()
Parameters
Name Type Description
$date STRING
  • date in (Y-m-d H:i:s)
Returns
Type Description
STRING date - vCal Formatted

\vBasic

Package: SugarCRM

Base class for all vObjects

Children
\vEvent
\vAlarm
\vTimeZone
\vCalendar

Properties

Propertyprotected  $parent= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $properties= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $stack= 'array()'
Default valuearray()Details
Type
n/a

Methods

methodpublic__construct( ) : void

methodpublicgenerateVCal( ) : STRING

returns the VCal String for the given object

Returns
Type Description
STRING
methodpublicgetProperties( ) : ARRAY

returns the properties for the given object

Returns
Type Description
ARRAY of properties
methodpublicgetStack( ) : ARRAY

returns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object

Returns
Type Description
ARRAY of events
methodpublicparseDate( object $key, object $date ) : \date

Takes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string

Parameters
Name Type Description
$key object
  • this is parsed to determine any timezone information
$date object
  • the date in vCal format (Ymd\THis\Z)
Returns
Type Description
\date formated string (Y-m-d H:i:s)
methodpublicprocess( object $key, object $value ) : void

default process action is to just set the properties

Parameters
Name Type Description
$key object
$value object
methodpublictoVCalDate( 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)

Parameters
Name Type Description
$date STRING
  • date in (Y-m-d H:i:s)
Returns
Type Description
STRING date - vCal Formatted

\vCalendar

Package: SugarCRM

Calendar events set class

Parent(s)
\vBasic

Properties

Propertyprotected  $cur= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $parent= 'null'
inheritedInherited from: \vBasic::$$parent
Default valuenullDetails
Type
n/a
Inherited_from
\vBasic::$$parent  
Propertypublic  $properties= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $stack= 'array()'
Default valuearray()Details
Type
n/a

Methods

methodpublic__construct( ) : void
inherited

Inherited from: \vBasic::__construct()
methodpublicaddEvent( \SugarEvent $event ) : void

add a SugarEvent to the vCalendar Object

Parameters
Name Type Description
$event \SugarEvent
methodpublicgenerateVCal( ) : STRING

Generates the VCalendar format for this object

Returns
Type Description
STRING
methodpublicgetProperties( ) : ARRAY
inherited

returns the properties for the given object

Inherited from: \vBasic::getProperties()
Returns
Type Description
ARRAY of properties
methodpublicgetStack( ) : ARRAY
inherited

returns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object

Inherited from: \vBasic::getStack()
Returns
Type Description
ARRAY of events
methodpublicparseDate( object $key, object $date ) : \date
inherited

Takes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string

Inherited from: \vBasic::parseDate()
Parameters
Name Type Description
$key object
  • this is parsed to determine any timezone information
$date object
  • the date in vCal format (Ymd\THis\Z)
Returns
Type Description
\date formated string (Y-m-d H:i:s)
methodpublicprocess( object $key, object $value ) :

parses the vCalendar

Parameters
Name Type Description
$key object
$value object
methodpublictoVCalDate( STRING $date ) : STRING
inherited

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()
Parameters
Name Type Description
$date STRING
  • date in (Y-m-d H:i:s)
Returns
Type Description
STRING date - vCal Formatted

\vEvent

Package: SugarCRM

Base class for all vObjects

Parent(s)
\vBasic
Children
\vToDo
\vJournal
\vFreeBusy

Properties

Propertyprotected  $parent= 'null'
inheritedInherited from: \vBasic::$$parent
Default valuenullDetails
Type
n/a
Inherited_from
\vBasic::$$parent  
Propertyprotected  $properties= 'array()'
inheritedInherited from: \vBasic::$$properties
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$properties  
Propertyprotected  $stack= 'array()'
inheritedInherited from: \vBasic::$$stack
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$stack  

Methods

methodpublic__construct( ) : void
inherited

Inherited from: \vBasic::__construct()
methodpublicgenerateVCal( ) :

Generates the VCAL for the event

methodpublicgetProperties( ) : ARRAY
inherited

returns the properties for the given object

Inherited from: \vBasic::getProperties()
Returns
Type Description
ARRAY of properties
methodpublicgetStack( ) : ARRAY
inherited

returns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object

Inherited from: \vBasic::getStack()
Returns
Type Description
ARRAY of events
methodpublicparseAttendee( string $key, string $value ) : array

Parse attendee string into key/value pairs

Parameters
Name Type Description
$key string
$value string
Returns
Type Description
array key/value pairs contanding attendee information
methodpublicparseDate( object $key, object $date ) : \date
inherited

Takes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string

Inherited from: \vBasic::parseDate()
Parameters
Name Type Description
$key object
  • this is parsed to determine any timezone information
$date object
  • the date in vCal format (Ymd\THis\Z)
Returns
Type Description
\date formated string (Y-m-d H:i:s)
methodpublicprocess( object $key, object $value ) : void

Handles the parsing of the vCalendar

Parameters
Name Type Description
$key object
$value object
methodpublicsetEvent( object $event ) :

converts a Sugar Event into a vEvent

Parameters
Name Type Description
$event object
methodpublictoVCalDate( STRING $date ) : STRING
inherited

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()
Parameters
Name Type Description
$date STRING
  • date in (Y-m-d H:i:s)
Returns
Type Description
STRING date - vCal Formatted

\vFreeBusy

Package:

Base class for all vObjects

Parent(s)
\vEvent < \vBasic

Properties

Propertyprotected  $parent= 'null'
inheritedInherited from: \vBasic::$$parent\vEvent::$$parent
Default valuenullDetails
Type
n/a
Inherited_from
\vBasic::$$parent  
Inherited_from
\vEvent::$$parent  
Propertyprotected  $properties= 'array()'
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$properties  
Inherited_from
\vEvent::$$properties  
Propertyprotected  $stack= 'array()'
inheritedInherited from: \vBasic::$$stack\vEvent::$$stack
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$stack  
Inherited_from
\vEvent::$$stack  

Methods

methodpublic__construct( ) : void
methodpublicgenerateVCal( ) :
inherited

Generates the VCAL for the event

Inherited from: \vEvent::generateVCal()
methodpublicgetProperties( ) : ARRAY
inherited

returns the properties for the given object

Inherited from: \vBasic::getProperties()\vEvent::getProperties()
Returns
Type Description
ARRAY of properties
methodpublicgetStack( ) : ARRAY
inherited

returns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object

Inherited from: \vBasic::getStack()\vEvent::getStack()
Returns
Type Description
ARRAY of events
methodpublicparseAttendee( string $key, string $value ) : array
inherited

Parse attendee string into key/value pairs

Inherited from: \vEvent::parseAttendee()
Parameters
Name Type Description
$key string
$value string
Returns
Type Description
array key/value pairs contanding attendee information
methodpublicparseDate( object $key, object $date ) : \date
inherited

Takes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string

Inherited from: \vBasic::parseDate()\vEvent::parseDate()
Parameters
Name Type Description
$key object
  • this is parsed to determine any timezone information
$date object
  • the date in vCal format (Ymd\THis\Z)
Returns
Type Description
\date formated string (Y-m-d H:i:s)
methodpublicprocess( object $key, object $value ) : void
inherited

Handles the parsing of the vCalendar

Inherited from: \vEvent::process()
Parameters
Name Type Description
$key object
$value object
methodpublicsetEvent( object $event ) :
inherited

converts a Sugar Event into a vEvent

Inherited from: \vEvent::setEvent()
Parameters
Name Type Description
$event object
methodpublictoVCalDate( STRING $date ) : STRING
inherited

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()
Parameters
Name Type Description
$date STRING
  • date in (Y-m-d H:i:s)
Returns
Type Description
STRING date - vCal Formatted

\vJournal

Package:

Base class for all vObjects

Parent(s)
\vEvent < \vBasic

Properties

Propertyprotected  $parent= 'null'
inheritedInherited from: \vBasic::$$parent\vEvent::$$parent
Default valuenullDetails
Type
n/a
Inherited_from
\vBasic::$$parent  
Inherited_from
\vEvent::$$parent  
Propertyprotected  $properties= 'array()'
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$properties  
Inherited_from
\vEvent::$$properties  
Propertyprotected  $stack= 'array()'
inheritedInherited from: \vBasic::$$stack\vEvent::$$stack
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$stack  
Inherited_from
\vEvent::$$stack  

Methods

methodpublic__construct( ) : void
methodpublicgenerateVCal( ) :
inherited

Generates the VCAL for the event

Inherited from: \vEvent::generateVCal()
methodpublicgetProperties( ) : ARRAY
inherited

returns the properties for the given object

Inherited from: \vBasic::getProperties()\vEvent::getProperties()
Returns
Type Description
ARRAY of properties
methodpublicgetStack( ) : ARRAY
inherited

returns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object

Inherited from: \vBasic::getStack()\vEvent::getStack()
Returns
Type Description
ARRAY of events
methodpublicparseAttendee( string $key, string $value ) : array
inherited

Parse attendee string into key/value pairs

Inherited from: \vEvent::parseAttendee()
Parameters
Name Type Description
$key string
$value string
Returns
Type Description
array key/value pairs contanding attendee information
methodpublicparseDate( object $key, object $date ) : \date
inherited

Takes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string

Inherited from: \vBasic::parseDate()\vEvent::parseDate()
Parameters
Name Type Description
$key object
  • this is parsed to determine any timezone information
$date object
  • the date in vCal format (Ymd\THis\Z)
Returns
Type Description
\date formated string (Y-m-d H:i:s)
methodpublicprocess( object $key, object $value ) : void
inherited

Handles the parsing of the vCalendar

Inherited from: \vEvent::process()
Parameters
Name Type Description
$key object
$value object
methodpublicsetEvent( object $event ) :
inherited

converts a Sugar Event into a vEvent

Inherited from: \vEvent::setEvent()
Parameters
Name Type Description
$event object
methodpublictoVCalDate( STRING $date ) : STRING
inherited

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()
Parameters
Name Type Description
$date STRING
  • date in (Y-m-d H:i:s)
Returns
Type Description
STRING date - vCal Formatted

\vTimeZone

Package:

Base class for all vObjects

Parent(s)
\vBasic

Properties

Propertyprotected  $parent= 'null'
inheritedInherited from: \vBasic::$$parent
Default valuenullDetails
Type
n/a
Inherited_from
\vBasic::$$parent  
Propertyprotected  $properties= 'array()'
inheritedInherited from: \vBasic::$$properties
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$properties  
Propertyprotected  $section= '""'
Default value""Details
Type
n/a
Propertyprotected  $stack= 'array()'
inheritedInherited from: \vBasic::$$stack
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$stack  
Propertypublic  $timezones= 'array()'
static
Default valuearray()Details
Type
n/a
Propertyprotected  $winZones= 'array()'
static
Default valuearray()Details
Type
n/a

Methods

methodpublic__construct( ) : void
inherited

Inherited from: \vBasic::__construct()
methodpublicgenerateVCal( ) : STRING
inherited

returns the VCal String for the given object

Inherited from: \vBasic::generateVCal()
Returns
Type Description
STRING
methodpublicgetProperties( ) : ARRAY
inherited

returns the properties for the given object

Inherited from: \vBasic::getProperties()
Returns
Type Description
ARRAY of properties
methodpublicgetStack( ) : ARRAY
inherited

returns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object

Inherited from: \vBasic::getStack()
Returns
Type Description
ARRAY of events
methodpublicguessTimezone( string $tz ) : \DateTimeZone
static

Guess custom timezone by name

Parameters
Name Type Description
$tz string

TZ name

Returns
Type Description
\DateTimeZone
methodpublicparseDate( object $key, object $date ) : \date
inherited

Takes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string

Inherited from: \vBasic::parseDate()
Parameters
Name Type Description
$key object
  • this is parsed to determine any timezone information
$date object
  • the date in vCal format (Ymd\THis\Z)
Returns
Type Description
\date formated string (Y-m-d H:i:s)
methodpublicprocess( string $key, string $value ) : void

Process TimeZone tags

Parameters
Name Type Description
$key string
$value string
methodpublictoVCalDate( STRING $date ) : STRING
inherited

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()
Parameters
Name Type Description
$date STRING
  • date in (Y-m-d H:i:s)
Returns
Type Description
STRING date - vCal Formatted

\vToDo

Package:

Base class for all vObjects

Parent(s)
\vEvent < \vBasic

Properties

Propertyprotected  $parent= 'null'
inheritedInherited from: \vBasic::$$parent\vEvent::$$parent
Default valuenullDetails
Type
n/a
Inherited_from
\vBasic::$$parent  
Inherited_from
\vEvent::$$parent  
Propertyprotected  $properties= 'array()'
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$properties  
Inherited_from
\vEvent::$$properties  
Propertyprotected  $stack= 'array()'
inheritedInherited from: \vBasic::$$stack\vEvent::$$stack
Default valuearray()Details
Type
n/a
Inherited_from
\vBasic::$$stack  
Inherited_from
\vEvent::$$stack  

Methods

methodpublic__construct( ) : void
methodpublicgenerateVCal( ) :
inherited

Generates the VCAL for the event

Inherited from: \vEvent::generateVCal()
methodpublicgetProperties( ) : ARRAY
inherited

returns the properties for the given object

Inherited from: \vBasic::getProperties()\vEvent::getProperties()
Returns
Type Description
ARRAY of properties
methodpublicgetStack( ) : ARRAY
inherited

returns the stack of events/todos/journals/FreeBusy/alarms/timezones for the given object

Inherited from: \vBasic::getStack()\vEvent::getStack()
Returns
Type Description
ARRAY of events
methodpublicparseAttendee( string $key, string $value ) : array
inherited

Parse attendee string into key/value pairs

Inherited from: \vEvent::parseAttendee()
Parameters
Name Type Description
$key string
$value string
Returns
Type Description
array key/value pairs contanding attendee information
methodpublicparseDate( object $key, object $date ) : \date
inherited

Takes in a vCalendar formatted date and generates a (Y-m-d H:i:s) formatted date string

Inherited from: \vBasic::parseDate()\vEvent::parseDate()
Parameters
Name Type Description
$key object
  • this is parsed to determine any timezone information
$date object
  • the date in vCal format (Ymd\THis\Z)
Returns
Type Description
\date formated string (Y-m-d H:i:s)
methodpublicprocess( object $key, object $value ) : void
inherited

Handles the parsing of the vCalendar

Inherited from: \vEvent::process()
Parameters
Name Type Description
$key object
$value object
methodpublicsetEvent( object $event ) :
inherited

converts a Sugar Event into a vEvent

Inherited from: \vEvent::setEvent()
Parameters
Name Type Description
$event object
methodpublictoVCalDate( STRING $date ) : STRING
inherited

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()
Parameters
Name Type Description
$date STRING
  • date in (Y-m-d H:i:s)
Returns
Type Description
STRING date - vCal Formatted
Documentation was generated by DocBlox 0.18.1.