function cmfcCalendar::factory in Calendar Systems 7.3
Same name and namespace in other branches
- 8 calendar/calendar.class.inc.php \cmfcCalendar::factory()
- 8.2 calendar/calendar.class.inc.php \cmfcCalendar::factory()
- 5 calendar/calendar.class.inc.php \cmfcCalendar::factory()
- 6.3 calendar/calendar.class.inc.php \cmfcCalendar::factory()
- 6 calendar/calendar.class.inc.php \cmfcCalendar::factory()
- 7 calendar/calendar.class.inc.php \cmfcCalendar::factory()
- 7.2 calendar/calendar.class.inc.php \cmfcCalendar::factory()
1 call to cmfcCalendar::factory()
- calendar_systems_get_calendar_instance in ./
calendar_systems.module - Gets an instance of the calendar object for the selected calendar system acording to the settings or the passed arguments
File
- calendar/
calendar.class.inc.php, line 8
Class
- cmfcCalendar
- @todo Esfahbod multi calendar should be used as of base of this package.
Code
function factory($name, $options) {
if ($name == 'old') {
//require_once('ca.class.inc.php');
//return new cmfcEmailSenderOld($options);
}
if ($name == 'v1') {
require_once dirname(__FILE__) . '/v1/calendarV1.class.inc.php';
return cmfcCalendarV1::factory($options);
}
}