showForCalendar() static public method

Show segments of a calendar
static public showForCalendar ( Calendar $calendar )
$calendar Calendar Calendar object
 /**
  * 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;
 }