You are here

static function Calendar::factory in Calendar Systems 8.2

2 calls to Calendar::factory()
Helpers::calendar_systems_add_strings in src/Helpers.php
Helpers::calendar_systems_get_calendar_instance in src/Helpers.php
Gets an instance of the calendar object for the selected calendar system acording to the settings or the passed arguments

File

src/Calendar/Calendar.php, line 14
Contains \Drupal\calendar_systems.

Class

Calendar

Namespace

Drupal\calendar_systems\Calendar

Code

static function factory($name, $options) {
  require_once __DIR__ . '/../../calendar/lib/exception.class.inc.php';
  require_once __DIR__ . '/../../calendar/lib/classesCore.class.inc.php';
  require_once __DIR__ . '/../../calendar/calendar.class.inc.php';
  return \cmfcCalendar::factory($name, $options);
}