本文整理汇总了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;
}