예제 #1
0
 public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'PluginOrderOrder' && $item->checkIfDetailExists($item->getID(), true) && Session::haveRight('plugin_order_order', READ)) {
         return self::createTabEntry(_n("Associated item", "Associated items", 2), self::countForOrder($item));
     }
 }
예제 #2
0
 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'PluginOrderOrder') {
         if ($item->checkIfDetailExists($item->getID(), true)) {
             return self::createTabEntry(_n("Associated item", "Associated items", 2), self::countForOrder($item));
         }
     }
 }