Esempio n. 1
0
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == 'CronTask') {
         switch ($tabnum) {
             case 1:
                 $item->showStatistics();
                 break;
             case 2:
                 $item->showHistory();
                 break;
         }
     }
     return true;
 }
Esempio n. 2
0
 /**
  * Defines the Tabs-actions
  *
  * @param CommonGLPI $item
  * @param int $tabnum
  * @param int $withtemplate
  *
  * @static
  *
  * @return boolean
  */
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     switch ($tabnum) {
         default:
         case 1:
             // Statistics
             $item->showStatistics();
             break;
         case 2:
             // Rating over time
             $item->showRatingByTime();
             break;
         case 3:
             // Comments
             $item->showComments();
             break;
         case 4:
             // Status-Spreading
             $item->showStatusSpreading();
             break;
     }
     return true;
 }