本文整理汇总了PHP中Document::showAssociated方法的典型用法代码示例。如果您正苦于以下问题:PHP Document::showAssociated方法的具体用法?PHP Document::showAssociated怎么用?PHP Document::showAssociated使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Document
的用法示例。
在下文中一共展示了Document::showAssociated方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
switch ($_REQUEST['glpi_tab']) {
case -1:
Computer_Item::showForItem($monitor);
Infocom::showForItem($monitor);
Contract::showAssociated($monitor);
Document::showAssociated($monitor, $_POST["withtemplate"]);
Ticket::showListForItem('Monitor', $_POST["id"]);
Link::showForItem('Monitor', $_POST["id"]);
Plugin::displayAction($monitor, $_REQUEST['glpi_tab']);
break;
case 4:
Infocom::showForItem($monitor);
Contract::showAssociated($monitor);
break;
case 5:
Document::showAssociated($monitor, $_POST["withtemplate"]);
break;
case 6:
Ticket::showListForItem('Monitor', $_POST["id"]);
break;
case 7:
Link::showForItem('Monitor', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Monitor', $_POST["id"]);
break;
case 11:
Reservation::showForItem('Monitor', $_POST["id"]);
break;
case 12:
Log::showForItem($monitor);
示例2: 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;
}
示例3: TicketFollowup
break;
case 3:
$ticket->showCost($_POST['target']);
break;
case 4:
if (!isset($_POST['load_kb_sol'])) {
$_POST['load_kb_sol'] = 0;
}
$ticket->showSolutionForm($_POST['load_kb_sol']);
if ($ticket->canApprove()) {
$fup = new TicketFollowup();
$fup->showApprobationForm($ticket);
}
break;
case 5:
Document::showAssociated($ticket);
break;
case 6:
Log::showForItem($ticket);
break;
case 7:
$validation = new Ticketvalidation();
$validation->showSummary($ticket);
break;
case 8:
$ticket->showStats();
break;
case 10:
// affichage uniquement si enquete déclenchée et status clos
$satisfaction = new TicketSatisfaction();
if ($ticket->fields['status'] == 'closed' && $satisfaction->getFromDB($_POST["id"])) {
示例4: Contract
}
$contract = new Contract();
if ($_POST['id'] > 0 && $contract->can($_POST['id'], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
$contract->showSuppliers();
$contract->showItems();
Document::showAssociated($contract);
Link::showForItem('Contact', $_POST["id"]);
Plugin::displayAction($contract, $_REQUEST['glpi_tab']);
break;
case 2:
$contract->showItems();
break;
case 5:
Document::showAssociated($contract);
break;
case 7:
Link::showForItem('Contract', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Contract', $_POST["id"]);
break;
case 12:
Log::showForItem($contract);
break;
default:
if (!Plugin::displayAction($contract, $_REQUEST['glpi_tab'])) {
$contract->showSuppliers();
}
}
示例5: showNotesForm
case -1:
Computer_Item::showForItem($phone);
NetworkPort::showForItem('Phone', $_POST["id"], $_POST["withtemplate"]);
Infocom::showForItem($phone);
Contract::showAssociated($phone);
Document::showAssociated($phone);
Ticket::showListForItem('Phone', $_POST["id"]);
Link::showForItem('Phone', $_POST["id"]);
Plugin::displayAction($phone, $_REQUEST['glpi_tab']);
break;
case 4:
Infocom::showForItem($phone);
Contract::showAssociated($phone);
break;
case 5:
Document::showAssociated($phone);
break;
case 6:
Ticket::showListForItem('Phone', $_POST["id"]);
break;
case 7:
Link::showForItem('Phone', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Phone', $_POST["id"]);
break;
case 11:
Reservation::showForItem('Phone', $_POST["id"]);
break;
case 12:
Log::showForItem($phone);
示例6: header_nocache
header_nocache();
if (!isset($_POST["id"])) {
exit;
}
if (!isset($_REQUEST['glpi_tab'])) {
exit;
}
$doc = new Document();
if ($_POST["id"] > 0 && $doc->can($_POST["id"], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
$doc->showItems();
Document::showAssociated($doc);
Plugin::displayAction($doc, $_REQUEST['glpi_tab']);
break;
case 5:
Document::showAssociated($doc);
break;
case 10:
showNotesForm($_POST['target'], 'Document', $_POST["id"]);
break;
case 12:
Log::showForItem($doc);
break;
default:
if (!Plugin::displayAction($doc, $_REQUEST['glpi_tab'])) {
$doc->showItems();
}
}
}
ajaxFooter();
示例7: showNotesForm
case -1:
Computer_Item::showForItem($periph);
NetworkPort::showForItem('Peripheral', $_POST["id"], $_POST["withtemplate"]);
Infocom::showForItem($periph);
Contract::showAssociated($periph);
Document::showAssociated($periph);
Ticket::showListForItem('Peripheral', $_POST["id"]);
Link::showForItem('Peripheral', $_POST["id"]);
Plugin::displayAction($periph, $_REQUEST['glpi_tab']);
break;
case 4:
Infocom::showForItem($periph);
Contract::showAssociated($periph);
break;
case 5:
Document::showAssociated($periph);
break;
case 6:
Ticket::showListForItem('Peripheral', $_POST["id"]);
break;
case 7:
Link::showForItem('Peripheral', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Peripheral', $_POST["id"]);
break;
case 11:
Reservation::showForItem('Peripheral', $_POST["id"]);
break;
case 12:
Log::showForItem($periph);
示例8: showNotesForm
ComputerVirtualMachine::showForComputer($computer);
Plugin::displayAction($computer, $_REQUEST['glpi_tab']);
break;
case 2:
Computer_SoftwareVersion::showForComputer($computer);
break;
case 3:
Computer_Item::showForComputer($_POST['target'], $computer);
NetworkPort::showForItem('Computer', $_POST["id"]);
break;
case 4:
Infocom::showForItem($computer);
Contract::showAssociated($computer);
break;
case 5:
Document::showAssociated($computer);
break;
case 6:
Ticket::showListForItem('Computer', $_POST["id"]);
break;
case 7:
Link::showForItem('Computer', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Computer', $_POST["id"]);
break;
case 11:
Reservation::showForItem('Computer', $_POST["id"]);
break;
case 12:
Log::showForItem($computer);
示例9: checkRight
if (!isset($_POST["withtemplate"])) {
$_POST["withtemplate"] = "";
}
checkRight("software", "r");
$license = new SoftwareLicense();
if ($_POST["id"] > 0 && $license->can($_POST["id"], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
Infocom::showForItem($license);
Document::showAssociated($license);
Plugin::displayAction($license, $_REQUEST['glpi_tab']);
break;
case 2:
Computer_SoftwareLicense::showForLicense($license);
break;
case 4:
Infocom::showForItem($license);
break;
case 5:
Document::showAssociated($license);
break;
case 12:
Log::showForItem($license);
break;
default:
if (!Plugin::displayAction($license, $_REQUEST['glpi_tab'])) {
Computer_SoftwareLicense::showForLicenseByEntity($license);
}
}
}
ajaxFooter();
示例10: define
// Purpose of file:
// ----------------------------------------------------------------------
define('GLPI_ROOT', '..');
include GLPI_ROOT . "/inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
header_nocache();
if (!isset($_POST["id"])) {
exit;
}
if (!isset($_REQUEST['glpi_tab'])) {
exit;
}
if (empty($_POST["id"])) {
$_POST["id"] = -1;
}
$kb = new KnowbaseItem();
if ($_POST['id'] > 0 && $kb->can($_POST['id'], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
$kb->showMenu();
Document::showAssociated($kb);
Plugin::displayAction($kb, $_REQUEST['glpi_tab']);
break;
default:
if (!Plugin::displayAction($kb, $_REQUEST['glpi_tab'])) {
$kb->showMenu();
Document::showAssociated($kb);
}
}
}
ajaxFooter();
示例11: switch
switch ($_REQUEST['glpi_tab']) {
case -1:
$cartridge->showCompatiblePrinters();
Cartridge::showAddForm($cartridge);
Cartridge::showForCartridgeItem($cartridge);
Cartridge::showForCartridgeItem($cartridge, 1);
Infocom::showForItem($cartridge);
Document::showAssociated($cartridge);
Link::showForItem('CartridgeItem', $_POST["id"]);
Plugin::displayAction($cartridge, $_REQUEST['glpi_tab']);
break;
case 4:
Infocom::showForItem($cartridge);
break;
case 5:
Document::showAssociated($cartridge);
break;
case 7:
Link::showForItem('CartridgeItem', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'CartridgeItem', $_POST["id"]);
break;
default:
if (!Plugin::displayAction($cartridge, $_REQUEST['glpi_tab'])) {
$cartridge->showCompatiblePrinters();
Cartridge::showAddForm($cartridge);
Cartridge::showForCartridgeItem($cartridge);
Cartridge::showForCartridgeItem($cartridge, 1);
}
}
示例12: showNotesForm
Contract::showAssociated($printer);
Document::showAssociated($printer);
Ticket::showListForItem('Printer', $_POST["id"]);
Link::showForItem('Printer', $_POST["id"]);
Plugin::displayAction($printer, $_REQUEST['glpi_tab']);
break;
case 3:
Computer_Item::showForItem($printer);
NetworkPort::showForItem('Printer', $_POST["id"]);
break;
case 4:
Infocom::showForItem($printer);
Contract::showAssociated($printer);
break;
case 5:
Document::showAssociated($printer);
break;
case 6:
Ticket::showListForItem('Printer', $_POST["id"]);
break;
case 7:
Link::showForItem('Printer', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Printer', $_POST["id"]);
break;
case 11:
Reservation::showForItem('Printer', $_POST["id"]);
break;
case 12:
Log::showForItem($printer);
示例13: showNotesForm
Infocom::showForItem($soft);
Contract::showAssociated($soft);
Document::showAssociated($soft);
Ticket::showListForItem('Software', $_POST["id"]);
Link::showForItem('Software', $_POST["id"]);
Plugin::displayAction($soft, $_REQUEST['glpi_tab']);
break;
case 2:
Computer_SoftwareVersion::showForSoftware($soft);
break;
case 4:
Infocom::showForItem($soft);
Contract::showAssociated($soft);
break;
case 5:
Document::showAssociated($soft);
break;
case 6:
Ticket::showListForItem('Software', $_POST["id"]);
break;
case 7:
Link::showForItem('Software', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Software', $_POST["id"]);
break;
case 11:
Reservation::showForItem('Software', $_POST["id"]);
break;
case 12:
Log::showForItem($soft);
示例14: Supplier
$supplier = new Supplier();
if ($_POST["id"] > 0 && $supplier->can($_POST["id"], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
$supplier->showContacts();
$supplier->showContracts();
Document::showAssociated($supplier);
Ticket::showListForSupplier($_POST["id"]);
Link::showForItem('Supplier', $_POST["id"]);
Plugin::displayAction($supplier, $_REQUEST['glpi_tab']);
break;
case 4:
$supplier->showContracts();
break;
case 5:
Document::showAssociated($supplier);
break;
case 6:
Ticket::showListForSupplier($_POST["id"]);
break;
case 7:
Link::showForItem('Supplier', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Supplier', $_POST["id"]);
break;
case 12:
Log::showForItem($supplier);
break;
case 15:
$supplier->showInfocoms();
示例15: Budget
}
$budget = new Budget();
if ($_POST['id'] > 0 && $budget->can($_POST['id'], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
$budget->showValuesByEntity();
$budget->showItems();
Document::showAssociated($budget);
Link::showForItem('Budget', $_POST["id"]);
Plugin::displayAction($budget, $_REQUEST['glpi_tab'], $_POST["withtemplate"]);
break;
case 2:
$budget->showItems();
break;
case 5:
Document::showAssociated($budget);
break;
case 7:
Link::showForItem('Budget', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Budget', $_POST["id"]);
break;
case 12:
Log::showForItem($budget);
break;
default:
if (!Plugin::displayAction($budget, $_REQUEST['glpi_tab'], $_POST["withtemplate"])) {
$budget->showValuesByEntity();
}
break;