$tree
$tree : object
The root node of the object tree
The main iCalendar object containing ZCiCalDataNodes and ZCiCalNodes.
__construct(string $data = "", integer $maxevents = 1000000, integer $startevent) : void
The main iCalendar object containing ZCiCalDataNodes and ZCiCalNodes.
use maxevents and startevent to read events in multiple passes (to save memory)
string | $data | icalendar feed string (empty if creating new feed) |
integer | $maxevents | maximum # of events to read |
integer | $startevent | starting event to read |
fromUnixDateTime(integer $datetime = null) : string
fromUnixDateTime()
Take Unix timestamp and format to iCal date/time string
integer | $datetime | Unix timestamp, leave blank for current date/time |
formatted iCal date/time string
None found |
fromUnixDate(integer $datetime = null) : string
fromUnixDate()
Take Unix timestamp and format to iCal date string
integer | $datetime | Unix timestamp, leave blank for current date/time |
formatted iCal date string
None found |
fromSqlDateTime(string $datetime = "") : string
Format into iCal time format from SQL date or SQL date-time format
string | $datetime | SQL date or SQL date-time string |
iCal formatted string
None found |
toSqlDateTime(string $datetime = "") : string
Format iCal time format to either SQL date or SQL date-time format
string | $datetime | icalendar formatted date or date-time |
SQL date or SQL date-time string
None found |