Stud.IP  trunk Revision
CalendarWriteriCalendar Class Reference
Inheritance diagram for CalendarWriteriCalendar:
Inheritance graph
Collaboration diagram for CalendarWriteriCalendar:
Collaboration graph

Public Member Functions

 __construct ()
 
 writeHeader ()
 
 writeFooter ()
 
 write (Event &$event)
 
 _exportUtcOffset ($value)
 
 _exportPeriod ($value)
 
 _exportDateTime ($value, $utc=false)
 
 _exportTime ($value, $utc=false)
 
 _exportDate ($value)
 
 _exportDuration ($value)
 
 _exportRecurrence ($value)
 
 _exportWdays ($value)
 
 _exportExdate ($value, $param)
 
 getFacultyEmail ($user_id)
 
 _exportCategories ($event)
 
 _foldLine ($line)
 
- Public Member Functions inherited from CalendarWriter
 __construct ()
 
 write (Event &$event)
 
 writeHeader ()
 
 writeFooter ()
 
 getDefaultFilenameSuffix ()
 
 getFormat ()
 

Data Fields

 $newline = "\r\n"
 
- Data Fields inherited from CalendarWriter
 $default_filename_suffix
 
 $format
 
 $client_identifier
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Member Function Documentation

◆ _exportCategories()

_exportCategories (   $event)
Here is the caller graph for this function:

◆ _exportDate()

_exportDate (   $value)

Export a Date field

Here is the caller graph for this function:

◆ _exportDateTime()

_exportDateTime (   $value,
  $utc = false 
)

Export a DateTime field

Parameters
int$valueUnix timestamp
Returns
String Date and time (UTC) iCalendar formatted
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _exportDuration()

_exportDuration (   $value)

Export a duration value

Here is the caller graph for this function:

◆ _exportExdate()

_exportExdate (   $value,
  $param 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _exportPeriod()

_exportPeriod (   $value)

Export a Time Period field

Parameters
array$value
Returns
String Period field iCalendar formatted
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _exportRecurrence()

_exportRecurrence (   $value)

Export a recurrence rule

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _exportTime()

_exportTime (   $value,
  $utc = false 
)

Export a Time field

Parameters
int$valueUnix timestamp
Returns
String Time (UTC) iCalendar formatted
Here is the caller graph for this function:

◆ _exportUtcOffset()

_exportUtcOffset (   $value)

Export a UTC Offset field

Parameters
array$value
Returns
String UTC offset field iCalendar formatted
Here is the caller graph for this function:

◆ _exportWdays()

_exportWdays (   $value)

Return the Stud.IP calendar wdays attribute of a event recurrence

Here is the caller graph for this function:

◆ _foldLine()

_foldLine (   $line)

Return the folded version of a line

Here is the caller graph for this function:

◆ getFacultyEmail()

getFacultyEmail (   $user_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

write ( Event $event)

Export this component as iCalendar format

Parameters
object$eventThe event to export.
Returns
String iCalendar formatted data
Here is the call graph for this function:

◆ writeFooter()

writeFooter ( )

◆ writeHeader()

writeHeader ( )

Field Documentation

◆ $newline

$newline = "\r\n"

The documentation for this class was generated from the following file: