showListForItem() static public method

Will also display tickets of linked items
static public showListForItem ( CommonDBTM $item ) : nothing
$item CommonDBTM CommonDBTM object
return nothing (display a table)
     Infocom::showForItem($netdevice);
     Contract::showAssociated($netdevice);
     Document::showAssociated($netdevice, $_POST["withtemplate"]);
     Ticket::showListForItem('NetworkEquipment', $_POST["id"]);
     Link::showForItem('NetworkEquipment', $_POST["id"]);
     Plugin::displayAction($netdevice, $_REQUEST['glpi_tab']);
     break;
 case 4:
     Infocom::showForItem($netdevice);
     Contract::showAssociated($netdevice);
     break;
 case 5:
     Document::showAssociated($netdevice, $_POST["withtemplate"]);
     break;
 case 6:
     Ticket::showListForItem('NetworkEquipment', $_POST["id"]);
     break;
 case 7:
     Link::showForItem('NetworkEquipment', $_POST["id"]);
     break;
 case 10:
     showNotesForm($_POST['target'], 'NetworkEquipment', $_POST["id"]);
     break;
 case 11:
     Reservation::showForItem('NetworkEquipment', $_POST["id"]);
     break;
 case 12:
     Log::showForItem($netdevice);
     break;
 default:
     if (!Plugin::displayAction($netdevice, $_REQUEST['glpi_tab'])) {
Beispiel #2
0
if (!isset($_POST["id"])) {
    exit;
}
if (empty($_POST["id"])) {
    $_POST["id"] = -1;
}
$sla = new SLA();
$slalevel = new SlaLevel();
if ($_POST['id'] > 0 && $sla->getFromDB($_POST['id'])) {
    switch ($_REQUEST['glpi_tab']) {
        case -1:
            $slalevel->showForSLA($sla);
            $rule = new RuleTicket();
            $rule->showAndAddRuleForm($sla);
            Ticket::showListForItem('Sla', $_POST["id"]);
            Plugin::displayAction($sla, $_REQUEST['glpi_tab']);
            break;
        case 4:
            $rule = new RuleTicket();
            $rule->showAndAddRuleForm($sla);
            break;
        case 6:
            Ticket::showListForItem('Sla', $_POST["id"]);
            break;
        default:
            if (!Plugin::displayAction($sla, $_REQUEST['glpi_tab'])) {
                $slalevel->showForSLA($sla);
            }
    }
}
ajaxFooter();
     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);
     break;
 default:
     if (!Plugin::displayAction($monitor, $_REQUEST['glpi_tab'])) {
Beispiel #4
0
     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);
     break;
 default:
     if (!Plugin::displayAction($phone, $_REQUEST['glpi_tab'])) {
     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);
     break;
 default:
     if (!Plugin::displayAction($periph, $_REQUEST['glpi_tab'])) {
 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);
     break;
 case 13:
     OcsLink::showForItem($computer);
     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);
     break;
 default:
     if (!Plugin::displayAction($printer, $_REQUEST['glpi_tab'])) {
     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);
     break;
 case 21:
     $soft->showMergeCandidates();