本文整理匯總了PHP中Profile_User::showForEntity方法的典型用法代碼示例。如果您正苦於以下問題:PHP Profile_User::showForEntity方法的具體用法?PHP Profile_User::showForEntity怎麽用?PHP Profile_User::showForEntity使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Profile_User
的用法示例。
在下文中一共展示了Profile_User::showForEntity方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: showTabContent
/**
* Display content of Tab
*
* @param $ID of the item
* @param $tab number of the tab
*
* @return true if handled (for class stack)
*/
function showTabContent($ID, $tab)
{
global $CFG_GLPI;
if (!$this->isNewID($ID)) {
switch ($tab) {
case -1:
// All
$this->showChildren($ID);
EntityData::showStandardOptions($this);
Profile_User::showForEntity($this);
$collection = new RuleRightCollection();
if ($collection->canList()) {
$ldaprule = new RuleRight();
$ldaprule->showAndAddRuleForm($this);
}
$collection = new RuleOcsCollection();
if ($collection->canList()) {
$ocsrule = new RuleOcs();
$ocsrule->showAndAddRuleForm($this);
}
$collection = new RuleMailCollectorCollection();
if ($collection->canList()) {
$mailcollector = new RuleMailCollector();
$mailcollector->showAndAddRuleForm($this);
}
Document::showAssociated($this);
EntityData::showNotificationOptions($this);
EntityData::showHelpdeskOptions($this);
EntityData::showInventoryOptions($this);
Plugin::displayAction($this, $tab);
break;
case 2:
EntityData::showStandardOptions($this);
break;
case 3:
Profile_User::showForEntity($this);
break;
case 4:
$collection = new RuleRightCollection();
if ($collection->canList()) {
$ldaprule = new RuleRight();
$ldaprule->showAndAddRuleForm($this);
}
$collection = new RuleOcsCollection();
if ($collection->canList()) {
$ocsrule = new RuleOcs();
$ocsrule->showAndAddRuleForm($this);
}
$collection = new RuleMailCollectorCollection();
if ($collection->canList()) {
$mailcollector = new RuleMailCollector();
$mailcollector->showAndAddRuleForm($this);
}
break;
case 5:
EntityData::showAdvancedOptions($this);
break;
case 6:
Document::showAssociated($this);
break;
case 7:
EntityData::showNotificationOptions($this);
break;
case 8:
EntityData::showHelpdeskOptions($this);
break;
case 9:
EntityData::showInventoryOptions($this);
break;
case 10:
showNotesForm(getItemTypeFormURL('EntityData'), 'EntityData', $_POST["id"]);
break;
default:
if (!Plugin::displayAction($this, $tab)) {
$this->showChildren($ID);
}
return false;
}
}
return false;
}