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


PHP CommonGLPI::getField方法代碼示例

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


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

示例1: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     global $CFG_GLPI;
     if ($item->getType() == 'Profile') {
         $prof = new self();
         self::addDefaultProfileInfos($item->getField('id'), array('plugin_racks' => 0, 'plugin_racks_model' => 0, 'plugin_racks_open_ticket' => 0));
         $prof->showForm($item->getField('id'));
     }
     return true;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:10,代碼來源:profile.class.php

示例2: displayTabContentForItem

 /**
  * Fonction native GLPI
  * @param CommonGLPI $item
  * @param int $tabnum
  * @param int $withtemplate
  * @return boolean
  */
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == 'Computer' || $item->getType() == 'Monitor') {
         if (Session::haveRightsOr('plugin_reforme_reforme', array(CREATE))) {
             $reforme = new self();
             $ID = $item->getField('id');
             $Name = $item->getField('name');
             // j'affiche le formulaire
             $reforme->showForm($ID, $item->getType());
         }
     }
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:19,代碼來源:reforme.class.php

示例3: displayTabContentForItem

 /**
  * Fonction native GLPI
  * @param CommonGLPI $item
  * @param int $tabnum
  * @param int $withtemplate
  * @return boolean
  */
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == 'Computer') {
         if (Session::haveRight('plugin_twins_twins', CREATE)) {
             $groupeAD = new self();
             $ID = $item->getField('id');
             $Name = $item->getField('name');
             // j'affiche le formulaire
             $groupeAD->showForm($ID, $Name);
         }
     }
     return true;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:20,代碼來源:twins.class.php

示例4: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     global $CFG_GLPI;
     if ($item->getType() == 'Profile') {
         $ID = $item->getField('id');
         $prof = new self();
         if (!$prof->getFromDBByProfile($item->getField('id'))) {
             $prof->createAccess($item->getField('id'));
         }
         $prof->showForm($item->getField('id'), array('target' => $CFG_GLPI["root_doc"] . "/plugins/mreporting/front/profile.form.php"));
     }
     return true;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:13,代碼來源:profile.class.php

示例5: displayTabContentForItem

 /**
  * Fonction native GLPI
  * @param CommonGLPI $item
  * @param int $tabnum
  * @param int $withtemplate
  * @return boolean
  */
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == 'Computer') {
         $profile = new PluginGroupeadProfileold();
         if ($profile->estAutorise()) {
             $groupeAD = new self();
             $ID = $item->getField('id');
             $Name = $item->getField('name');
             // j'affiche le formulaire
             $groupeAD->showForm($ID, $Name);
         }
     }
     return true;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:21,代碼來源:groupeadold.class.php

示例6: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == 'Profile') {
         $prof = new self();
         $ID = $item->getField('id');
         $name = $item->getField('name');
         // si le profil n'existe pas dans la base, je l'ajoute
         if (!$prof->GetfromDB($ID)) {
             $prof->createAccess($ID, $name);
         }
         // j'affiche le formulaire
         $prof->showForm($ID);
     }
     return true;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:15,代碼來源:profile.class.php

示例7: getTabNameForItem

 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
         return PluginShellcommandsShellcommand::getTypeName(2);
     }
     return '';
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:7,代碼來源:profile.class.php

示例8: getTabNameForItem

 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
         return PluginEnvironmentDisplay::getTypeName(1);
     }
     return '';
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:7,代碼來源:profile.class.php

示例9: getTabNameForItem

 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
         return __('More ticket', 'moreticket');
     }
     return '';
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:7,代碼來源:profile.class.php

示例10: getTabNameForItem

 /**
  * @see inc/CommonGLPI::getTabNameForItem()
  **/
 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
         return __('OCSNG', 'ocsinventoryng');
     }
     return '';
 }
開發者ID:JULIO8,項目名稱:respaldo_glpi,代碼行數:10,代碼來源:profile.class.php

示例11: getTabNameForItem

 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'CronTask' && $item->getField('name') == "DomainsAlert") {
         return __('Plugin Setup', 'domains');
     }
     return '';
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:7,代碼來源:config.class.php

示例12: getTabNameForItem

 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
         return PluginFinancialreportsFinancialreport::getTypeName();
     }
     return '';
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:7,代碼來源:profile.class.php

示例13: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == 'PluginResourcesResource') {
         $self = new self();
         $self->showItemHelpdesk($item->getField('id'), 0, $withtemplate);
     }
     return true;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:8,代碼來源:choice.class.php

示例14: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == 'Supplier') {
         $self = new self();
         $self->showPluginFromSupplier($item->getField('id'));
     }
     return true;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:8,代碼來源:database.class.php

示例15: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     global $CFG_GLPI;
     $self = new self();
     if (in_array($item->getType(), self::getModelClasses(true))) {
         $self->showForm("", array('items_id' => $item->getField('id'), 'itemtype' => get_class($item), 'target' => $CFG_GLPI['root_doc'] . "/plugins/racks/front/itemspecification.form.php"));
     }
     return true;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:9,代碼來源:itemspecification.class.php


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