/** * Display content of Tab * * @param $ID of the item * @param $tab number of the tab * * @return true if handled (for class stack) **/ function showTabContent($ID, $tab) { if (!$this->isNewID($ID) && !parent::showTabContent($ID, $tab)) { switch ($tab) { case 1: $this->showChildren($ID); return true; case -1: $this->showChildren($ID); return false; } } return false; }
/** * Display content of Tab * * @param $ID of the item * @param $tab number of the tab * * @return true if handled (for class stack) **/ function showTabContent($ID, $tab) { if ($ID > 0 && !parent::showTabContent($ID, $tab)) { switch ($tab) { case 1: CalendarSegment::showForCalendar($this); return true; case 2: Calendar_Holiday::showForCalendar($this); return true; case -1: CalendarSegment::showForCalendar($this); Calendar_Holiday::showForCalendar($this); return false; } } return false; }