當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonGLPI::showForm方法代碼示例

本文整理匯總了PHP中CommonGLPI::showForm方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonGLPI::showForm方法的具體用法?PHP CommonGLPI::showForm怎麽用?PHP CommonGLPI::showForm使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonGLPI的用法示例。


在下文中一共展示了CommonGLPI::showForm方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: displayTabContentForItem

 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;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:12,代碼來源:config.class.php

示例2: displayTabContentForItem

 /**
  * 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;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:20,代碼來源:tag.class.php

示例3: displayTabContentForItem

 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;
 }
開發者ID:puchadesc,項目名稱:accounts,代碼行數:18,代碼來源:aeskey.class.php

示例4: displayTabContentForItem

 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;
 }
開發者ID:jose-martins,項目名稱:glpi,代碼行數:17,代碼來源:knowbaseitem.class.php

示例5: displayTabContentForItem

 /**
  * 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;
 }
開發者ID:C-Duv,項目名稱:fusioninventory-for-glpi,代碼行數:27,代碼來源:config.class.php

示例6: displayTabContentForItem

 /**
  * 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']);
 }
開發者ID:ChristopheG77,項目名稱:formcreator,代碼行數:15,代碼來源:formanswer.class.php

示例7: displayTabContentForItem

 /**
  * 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;
 }
開發者ID:pluginsGLPI,項目名稱:uninstall,代碼行數:18,代碼來源:model.class.php


注:本文中的CommonGLPI::showForm方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。