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


PHP CommonGLPI::getID方法代碼示例

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


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

示例1: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $pfCollect_File = new PluginFusioninventoryCollect_File();
     $pfCollect_File->showFile($item->getID());
     $pfCollect_File->showForm($item->getID());
     return TRUE;
 }
開發者ID:korial29,項目名稱:fusioninventory-for-glpi,代碼行數:7,代碼來源:collect_file.class.php

示例2: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $pfRulematchedlog = new self();
     if ($tabnum == '0') {
         if ($item->getID() > 0) {
             $pfRulematchedlog->showFormAgent($item->getID());
         }
     } else {
         if ($tabnum == '1') {
             if ($item->getID() > 0) {
                 $pfRulematchedlog->showForm($item->getID(), $item->getType());
                 $itemtype = '';
                 switch (get_class($item)) {
                     case 'Computer':
                         $itemtype = new PluginFusioninventoryInventoryComputerComputer();
                         break;
                     case 'Printer':
                         $itemtype = new PluginFusioninventoryPrinter();
                         break;
                     case 'NetworkEquipment':
                         $itemtype = new PluginFusioninventoryNetworkEquipment();
                         break;
                 }
                 if (is_object($itemtype) && $itemtype->canView()) {
                     $itemtype->displaySerializedInventory($item->getID());
                 }
             }
         }
     }
     return TRUE;
 }
開發者ID:korial29,項目名稱:fusioninventory-for-glpi,代碼行數:31,代碼來源:rulematchedlog.class.php

示例3: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getID() > 0) {
         $pfBatteries = new self();
         $pfBatteries->showForm($item->getID());
     }
     return TRUE;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:8,代碼來源:inventorycomputerbatteries.class.php

示例4: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getID() > 0) {
         $pfInventoryComputerStorage = new self();
         $pfInventoryComputerStorage->showStorage($item->getID());
     }
     return TRUE;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:8,代碼來源:inventorycomputerstorage.class.php

示例5: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     global $CFG_GLPI;
     if ($item->getID() > 0) {
         $pfProfile = new self();
         $pfProfile->showForm($item->getID(), $CFG_GLPI['root_doc'] . '/plugins/barcode/front/profile.php');
     }
     return TRUE;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:9,代碼來源:profile.class.php

示例6: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getID() > -1) {
         $pmEntity = new PluginMonitoringEntity();
         $pmHostconfig = new PluginMonitoringHostconfig();
         $pmHostconfig->showForm($item->getID(), "Entity");
         $pmEntity->showForm($item->fields['id']);
     }
     return true;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:10,代碼來源:entity.class.php

示例7: displayTabContentForItem

 public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $self = new self();
     if ($item->getType() == 'PluginAccountsHash') {
         $key = self::checkIfAesKeyExists($item->getID());
         if ($key) {
             $self->showAesKey($item->getID());
         }
         if (!$key) {
             $self->showForm("", array('plugin_accounts_hashes_id' => $item->getID()));
         }
     }
     return true;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:14,代碼來源:aeskey.class.php

示例8: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     return;
     $profile = new Profile();
     $found_profiles = $profile->find("`interface` = 'central'");
     $tab_profile = new self();
     $found_tab_profiles = $tab_profile->find("`plugin_custom_tabs_id` = " . $item->getID());
     echo "<form method='POST' action='tabprofile.form.php' />";
     echo "<table class='tab_cadre_fixe'>";
     echo "<tr><th colspan='4'>" . __("Visibility") . "</th></tr>";
     $odd = 0;
     foreach ($found_profiles as $profiles_id => $profile_fields) {
         if ($odd % 2 === 0) {
             echo "<tr>";
         }
         echo "<td>" . $profile_fields['name'] . "</td>";
         echo "<td>";
         Dropdown::showYesNo("tab_profile[{$profiles_id}]", 0);
         echo "</td>";
         if ($odd % 2 === 1) {
             echo "</tr>";
         }
         $odd++;
     }
     if ($odd % 2 === 0) {
         echo "</tr>";
     }
     echo "<tr><td colspan='4'><div class='center'>";
     echo "<input type='submit' name='update' value=\"" . _sx('button', 'Post') . "\" class='submit'>";
     echo "</div></td></tr>";
     echo "</table>";
     Html::closeForm();
     return true;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:34,代碼來源:tabprofile.class.php

示例9: getTabNameForItem

 /**
  * Display tab
  *
  * @param CommonGLPI $item
  * @param integer $withtemplate
  *
  * @return varchar name of the tab(s) to display
  */
 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'Ticket' && $item->getID() > 0 && PluginEscalationProfile::haveRight("copyticket", 1)) {
         return "Copie de ticket";
     }
     return '';
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:15,代碼來源:ticketcopy.class.php

示例10: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($tabnum == 2) {
         echo $item->configureNodesLinks($item->getID());
     }
     return TRUE;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:7,代碼來源:weathermap.class.php

示例11: getTabNameForItem

 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getID() > 0) {
         if (get_class($item) == 'PluginFusioninventoryCollect') {
             if ($item->fields['type'] == 'wmi') {
                 $a_colregs = getAllDatasFromTable('glpi_plugin_fusioninventory_collects_wmis', "`plugin_fusioninventory_collects_id`='" . $item->getID() . "'");
                 if (count($a_colregs) == 0) {
                     return array();
                 }
                 $in = array();
                 foreach ($a_colregs as $id => $data) {
                     $in[] = $id;
                 }
                 if (countElementsInTable('glpi_plugin_fusioninventory_collects_wmis_contents', "`plugin_fusioninventory_collects_wmis_id` IN ('" . implode("','", $in) . "')") > 0) {
                     return array(__('Windows WMI content', 'fusioninventory'));
                 }
             }
         } else {
             if (get_class($item) == 'Computer') {
                 if (countElementsInTable('glpi_plugin_fusioninventory_collects_wmis_contents', "`computers_id`='" . $item->getID() . "'") > 0) {
                     return array(__('Windows WMI content', 'fusioninventory'));
                 }
             }
         }
     }
     return array();
 }
開發者ID:korial29,項目名稱:fusioninventory-for-glpi,代碼行數:27,代碼來源:collect_wmi_content.class.php

示例12: getTabNameForItem

 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     // can exists for template
     if ($item->getType() == 'PluginMonitoringServicescatalog' && $item->getID() > 0) {
         return self::createTabEntry(self::getTypeName(2), 0);
     }
     return '';
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:8,代碼來源:businessrulegroup.class.php

示例13: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getID() > -1) {
         $pmEntity = new PluginFusionInventoryEntity();
         $pmEntity->showForm($item->fields['id']);
     }
     return true;
 }
開發者ID:korial29,項目名稱:fusioninventory-for-glpi,代碼行數:8,代碼來源:entity.class.php

示例14: getTabNameForItem

 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     $ong = array();
     if ($item->getID() > 0) {
         $ong[] = __('Associated SNMP authentications', 'fusioninventory');
     }
     return $ong;
 }
開發者ID:korial29,項目名稱:fusioninventory-for-glpi,代碼行數:8,代碼來源:iprange_configsecurity.class.php

示例15: displayTabContentForItem

   static function displayTabContentForItem(CommonGLPI $item, $tabnum=1, $withtemplate=0) {

      if ($item->getID() > 0) {
         $pmContact = new PluginMonitoringContact();
         $pmContact->showForm(0);
      }
      return true;
   }
開發者ID:euqip,項目名稱:glpi-smartcities,代碼行數:8,代碼來源:contact.class.php


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