You are here

public static function cmfcCalendar::factory in Calendar Systems 8.2

Same name and namespace in other branches
  1. 8 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  2. 5 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  3. 6.3 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  4. 6 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  5. 7.3 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  6. 7 calendar/calendar.class.inc.php \cmfcCalendar::factory()
  7. 7.2 calendar/calendar.class.inc.php \cmfcCalendar::factory()
1 call to cmfcCalendar::factory()
Calendar::factory in src/Calendar/Calendar.php

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);
  }
}