本文整理汇总了PHP中CommonGLPI::showFormInventory方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonGLPI::showFormInventory方法的具体用法?PHP CommonGLPI::showFormInventory怎么用?PHP CommonGLPI::showFormInventory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonGLPI
的用法示例。
在下文中一共展示了CommonGLPI::showFormInventory方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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;
}
示例2: displayTabContentForItem
/**
* @param $item CommonGLPI object
* @param $tabnum (default 1)
* @param $withtemplate (default 0)
**/
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
global $CFG_GLPI;
if ($item->getType() == 'Preference') {
$config = new self();
$user = new User();
if ($user->getFromDB(Session::getLoginUserID())) {
$user->computePreferences();
$config->showFormUserPrefs($user->fields);
}
} else {
if ($item->getType() == 'User') {
$config = new self();
$item->computePreferences();
$config->showFormUserPrefs($item->fields);
} else {
if ($item->getType() == __CLASS__) {
switch ($tabnum) {
case 1:
$item->showFormDisplay();
break;
case 2:
$item->showFormUserPrefs($CFG_GLPI);
break;
case 3:
$item->showFormInventory();
break;
case 4:
$item->showFormHelpdesk();
break;
case 5:
$item->showSystemInformations();
break;
case 6:
$item->showFormDBSlave();
break;
}
}
}
}
return true;
}
示例3: displayTabContentForItem
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
if ($item->getType() == __CLASS__) {
$item->cleanProfile();
switch ($tabnum) {
case 1:
$item->showFormHelpdesk();
break;
case 2:
$item->showFormInventory();
break;
case 3:
$item->showFormTracking();
break;
case 4:
$item->showFormLifeCycle();
break;
case 5:
$item->showFormAdmin();
break;
case 6:
$item->showFormSetup();
break;
}
}
return true;
}