You are here

function cmfcCalendar::factory in Calendar Systems 5

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. 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_systems_get_calendar_instance in ./calendar_systems.module

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