ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This class generates birthday calendars. More...
Public Member Functions | |
__construct ($objects=null) | |
Creates the generator. More... | |
setObjects ($objects) | |
Sets the input objects. More... | |
setFormat ($format) | |
Sets the output format for the SUMMARY. More... | |
getResult () | |
Parses the input data and returns a VCALENDAR. More... | |
Data Fields | |
const | DEFAULT_YEAR = 2000 |
Default year. More... | |
Protected Attributes | |
$objects = [] | |
$format = '%1$s\'s Birthday' | |
This class generates birthday calendars.
Definition at line 14 of file BirthdayCalendarGenerator.php.
Sabre\VObject\BirthdayCalendarGenerator::__construct | ( | $objects = null | ) |
Creates the generator.
Check the setTimeRange and setObjects methods for details about the arguments.
mixed | $objects |
Definition at line 44 of file BirthdayCalendarGenerator.php.
References Sabre\VObject\BirthdayCalendarGenerator\$objects, and Sabre\VObject\BirthdayCalendarGenerator\setObjects().
Sabre\VObject\BirthdayCalendarGenerator::getResult | ( | ) |
Parses the input data and returns a VCALENDAR.
Definition at line 112 of file BirthdayCalendarGenerator.php.
References $calendar, Sabre\VObject\DateTimeParser\parseVCardDateTime(), and Sabre\VObject\Document\VCARD40.
Sabre\VObject\BirthdayCalendarGenerator::setFormat | ( | $format | ) |
Sets the output format for the SUMMARY.
string | $format |
Definition at line 101 of file BirthdayCalendarGenerator.php.
References Sabre\VObject\BirthdayCalendarGenerator\$format.
Sabre\VObject\BirthdayCalendarGenerator::setObjects | ( | $objects | ) |
Sets the input objects.
You must either supply a vCard as a string or as a Component/VCard object. It's also possible to supply an array of strings or objects.
mixed | $objects |
Definition at line 62 of file BirthdayCalendarGenerator.php.
References Sabre\VObject\BirthdayCalendarGenerator\$objects, and Sabre\VObject\Reader\read().
Referenced by Sabre\VObject\BirthdayCalendarGenerator\__construct().
|
protected |
Definition at line 34 of file BirthdayCalendarGenerator.php.
Referenced by Sabre\VObject\BirthdayCalendarGenerator\setFormat().
|
protected |
Definition at line 21 of file BirthdayCalendarGenerator.php.
Referenced by Sabre\VObject\BirthdayCalendarGenerator\__construct(), and Sabre\VObject\BirthdayCalendarGenerator\setObjects().
const Sabre\VObject\BirthdayCalendarGenerator::DEFAULT_YEAR = 2000 |
Default year.
Used for dates without a year.
Definition at line 27 of file BirthdayCalendarGenerator.php.