/**
  * Constructor
  *
  * @access	public
  * @return	null
  */
 public function __construct($updated = FALSE)
 {
     parent::Module_builder_calendar('calendar');
     // -------------------------------------
     //  Module Installed and Up to Date?
     // -------------------------------------
     if ($updated === FALSE and ($this->database_version() == FALSE or $this->version_compare($this->database_version(), '<', CALENDAR_VERSION) or !$this->extensions_enabled())) {
         $this->disabled = TRUE;
         trigger_error(lang('calendar_module_disabled'), E_USER_NOTICE);
     }
     // -------------------------------------
     //  First day of the week
     // -------------------------------------
     if ($this->preference('first_day_of_week') !== FALSE) {
         $this->first_day_of_week = $this->preference('first_day_of_week');
     }
     $this->actions();
     if (!defined('CALENDAR_CALENDARS_CHANNEL_NAME')) {
         define('CALENDAR_CALENDARS_CHANNEL_NAME', $this->actions->calendar_channel_shortname());
         define('CALENDAR_EVENTS_CHANNEL_NAME', $this->actions->event_channel_shortname());
     }
 }