static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     switch ($tabnum) {
         case 0:
             $item->showForm(1);
             break;
         case 1:
             PluginGeninventorynumberConfigField::showForConfig($item->getID());
             break;
     }
     return TRUE;
 }
 /**
  * Définition du contenu de l'onglet
  **/
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     switch ($item->getType()) {
         case __CLASS__:
             switch ($tabnum) {
                 case 1:
                     $item->showForm($item->getID());
                     break;
                 case 2:
                     $tagitem = new PluginTagTagItem();
                     $ID = $item->getField('id');
                     $tagitem->showForTag($item);
                     break;
             }
     }
     return true;
 }
Beispiel #3
0
 public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $self = new self();
     switch ($item->getType()) {
         case 'PluginAccountsHash':
             $key = self::checkIfAesKeyExists($item->getID());
             if ($key) {
                 $self->showAesKey($item->getID());
             }
             if (!$key) {
                 $self->showForm("", array('plugin_accounts_hashes_id' => $item->getID()));
             }
             break;
         case __CLASS__:
             $item->showForm($item->getID(), $item->fields);
     }
     return true;
 }
 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;
 }
 /**
  * Display content of tab
  *
  * @param CommonGLPI $item
  * @param integer $tabnum
  * @param interger $withtemplate
  *
  * @return boolean TRUE
  */
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     switch ($tabnum) {
         case 0:
             $item->showForm();
             break;
         case 1:
             $item->showFormInventory();
             break;
         case 2:
             $item->showFormNetworkInventory();
             break;
         case 3:
             $item->showFormDeploy();
             break;
     }
     return TRUE;
 }
 /**
  * Display a list of all forms on the configuration page
  *
  * @param  CommonGLPI $item         Instance of a CommonGLPI Item (The Config Item)
  * @param  integer    $tabnum       Number of the current tab
  * @param  integer    $withtemplate
  *
  * @see CommonDBTM::displayTabContentForItem
  *
  * @return null                     Nothing, just display the list
  */
 public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $item->showForm($item->fields['id']);
 }
Beispiel #7
0
 /**
  * Définition du contenu de l'onglet
  **/
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     switch ($item->getType()) {
         case __CLASS__:
             switch ($tabnum) {
                 case 1:
                     $item->showForm($item->getID());
                     break;
                 case 2:
                     $item->showFormAction($item);
                     break;
             }
     }
     return true;
 }