You are here

public static function cmfcCalendar::factory in Calendar Systems 7

Same name and namespace in other branches
  1. 8 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  2. 8.2 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  3. 5 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  4. 6.3 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  5. 6 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  6. 7.3 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  7. 7.2 calendar/calendar.class.inc.php \cmfcCalendar::factory()
2 calls to cmfcCalendar::factory()
calendar_systems_get_calendar_instance in ./calendar_systems.helpers.inc
Gets an instance of the calendar object for the selected calendar system acording to the settings or the passed arguments
_calendar_systems_add_strings in ./calendar_systems.admin.inc

File

calendar/calendar.class.inc.php, line 8

Class

cmfcCalendar
@todo Esfahbod multi calendar should be used as of base of this package.

Code

public static function factory($name, $options) {
  if ($name == 'v1') {
    require_once dirname(__FILE__) . '/v1/calendarV1.class.inc.php';
    return cmfcCalendarV1::factory($options);
  }
}