/** * __construct * * @param mixed $timetable * @access public * @return void */ public function __construct($timetable, $options = array()) { $day = new Calendar_Day($timetable->year, $timetable->month, $timetable->day); parent::__construct($day); $this->timetable = $timetable; require_once CALENDAR_ROOT . 'Hour.php'; require_once CALENDAR_ROOT . 'Table/Helper.php'; $this->cE = $this->getEngine(); $this->year = $this->thisYear(); $this->month = $this->thisMonth(); $this->day = $this->thisDay(); }
/** * __construct * * options: * - clickondayurl: url de l'action onclick sur click sur un jour. * * @param Timetable $timetable * @param array $options * @access public * @return void */ public function __construct($timetable, $options = array()) { $this->week = new Calendar_Week($timetable->year, $timetable->month, $timetable->day, $timetable->firstDay); parent::__construct($this->week); $this->timetable = $timetable; $date = $this->week->tableHelper->getWeekStart($timetable->year, $timetable->month, $timetable->day, $timetable->firstDay); require_once CALENDAR_ROOT . 'Hour.php'; require_once CALENDAR_ROOT . 'Table/Helper.php'; $this->tableHelper = new Calendar_Table_Helper($this, $timetable->firstDay); $this->cE = $this->getEngine(); $this->year = $this->thisYear(); $this->month = $this->thisMonth(); $this->day = $this->thisDay(); $hoursInDay = $this->cE->getHoursInDay(); if (isset($options['clickondayurl'])) { $this->clickOnDayUrl = $options['clickondayurl']; } }
/** * __construct * * options: * - clickondayurl: url de l'action onclick sur click sur un jour. * - hoursinevents: true pour afficher l'heure de l'événement devant ca * description. * * @param Timetable $timetable un objet Timetable * @param array $options * @access public * @return void */ public function __construct($timetable, $options = array()) { $month = new Calendar_Month_Weekdays($timetable->year, $timetable->month, $timetable->firstDay); parent::__construct($month); $this->timetable = $timetable; require_once CALENDAR_ROOT . 'Day.php'; require_once CALENDAR_ROOT . 'Table/Helper.php'; $this->tableHelper = new Calendar_Table_Helper($this, $timetable->firstDay); $this->cE = $this->getEngine(); $this->year = $timetable->year; $this->month = $timetable->month; $this->day = 1; if (isset($options['clickondayurl'])) { $this->clickOnDayUrl = $options['clickondayurl']; } if (isset($options['hoursinevents'])) { $this->hoursInEvents = $options['hoursinevents']; } }