A class representing an iCalendar calendar object.
A class representing an iCalendar calendar object.
It has some basic properties and may contain one or more events (represented by AnewtCalendarEvent). An instance of this class can be serialized to a text/calendar (.ics) file, which can be imported into calendering applications such as Evolution, iCal or Outlook.
The available properties are:
filename contains the filename for this calendarmethod defines the METHOD for the calendar. This is PUBLISH by default.generator contains the product identifier (optional, defaults to an Anewt-specific string)A filename is optional, but it is recommended to set one for better client compatibility, since some platforms ignore the MIME type information and rely on the file name (extension) to determine what actions to perform.
__construct() ¶Construct a new AnewtCalendar instance.
render() ¶Render this calendar to a string in iCal format.
String representation of this calendar
flush() ¶Output the calendar to a browser.
This renders the calendar and all its asssociated events, and sends the output to the browser with the correct HTTP headers for the MIME type and (optionally) the downoad filename.
static escape_string($str, $multiline) [private] [static] ¶Escape a string so that it can be used for TEXT fields.
Newlines and other characters are escaped to match the iCalendar specification.
$strA string to escape.
$multilineBoolean to indicate whether this is a multiline string. This affects how the string is escaped.
The escaped string
AnewtContainer::_to_array()AnewtContainer::_add()AnewtContainer::delete()AnewtContainer::get()AnewtContainer::_isset()AnewtContainer::_seed()AnewtContainer::setdefault()AnewtContainer::getdefault()AnewtContainer::set()AnewtContainer::__isset()AnewtContainer::__set()AnewtContainer::__construct()AnewtContainer::is_set()AnewtContainer::add()AnewtContainer::_getdefault()AnewtContainer::__unset()AnewtContainer::seed()AnewtContainer::to_array()AnewtContainer::_get()AnewtContainer::__get()AnewtContainer::keys()AnewtContainer::clear()AnewtContainer::_keys()AnewtContainer::_set()