/** * @param $item CommonGLPI object * @param $tabnum (default 1) * @param $withtemplate (default 0) **/ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { switch ($item->getType()) { case 'Reminder': $item->showVisibility(); return true; } return false; }
/** * @param $item CommonGLPI object * @param $tabnum (default 1) * @param $withtemplate (default 0) **/ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { switch ($item->getType()) { case 'RSSFeed': switch ($tabnum) { case 1: $item->showFeedContent(); return true; case 2: $item->showVisibility(); return true; } } return false; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == __CLASS__) { switch ($tabnum) { case 1: $item->showFull(); break; case 2: $item->showVisibility(); break; case 3: $item->showForm($item->getID()); break; } } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum=1, $withtemplate=0) { if ($item->getType() == 'PluginMonitoringSlider') { switch($tabnum) { case 1: $pmSlider_item = new PluginMonitoringSlider_item(); $pmSlider_item->view($item->getID(), 1); break; case 2 : $item->showVisibility(); break; } } else if ($item->getType() == 'Central') { if (Session::haveRight("plugin_monitoring_slider", PluginMonitoringSlider::HOMEPAGE)) { $pmSlider_item = new PluginMonitoringSlider_item(); $pmSlider = new PluginMonitoringSlider(); $a_sliders = $pmSlider->getSliders(1); foreach ($a_sliders as $sliders_id=>$name) { $pmSlider->getFromDB($sliders_id); if ($pmSlider->haveVisibilityAccess()) { $pmSlider_item->view($sliders_id); } } } } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'PluginMonitoringDisplayview') { switch ($tabnum) { case 1: $pmDisplayview_item = new PluginMonitoringDisplayview_item(); $pmDisplayview_item->view($item->getID(), 1); break; case 2: $item->showVisibility(); break; } if ($tabnum >= 20) { $pmDisplayview_rule = new PluginMonitoringDisplayview_rule(); $pmDisplayview_rule->ShowRulesTabs($item->getID(), $tabnum); } } else { if ($item->getType() == 'Central') { if (Session::haveRight("plugin_monitoring_displayview", PluginMonitoringDisplayview::HOMEPAGE)) { $pmDisplayview_item = new PluginMonitoringDisplayview_item(); $pmDisplayview = new PluginMonitoringDisplayview(); $a_views = $pmDisplayview->getViews(1); foreach ($a_views as $views_id => $name) { $pmDisplayview->getFromDB($views_id); if ($pmDisplayview->haveVisibilityAccess()) { $pmDisplayview_item->view($views_id); } } } } } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'PluginMonitoringDisplayview') { switch ($tabnum) { case 1: $pmDisplayview_item = new PluginMonitoringDisplayview_item(); $pmDisplayview_item->view($item->getID(), 1); break; case 2: $item->showVisibility(); break; } if ($tabnum >= 20) { $pmDisplayview_rule = new PluginMonitoringDisplayview_rule(); $pmDisplayview_rule->ShowRulesTabs($item->getID(), $tabnum); } } return true; }