当前位置: 首页>>代码示例>>PHP>>正文


PHP Plugin::displayAction方法代码示例

本文整理汇总了PHP中Plugin::displayAction方法的典型用法代码示例。如果您正苦于以下问题:PHP Plugin::displayAction方法的具体用法?PHP Plugin::displayAction怎么用?PHP Plugin::displayAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Plugin的用法示例。


在下文中一共展示了Plugin::displayAction方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: define

// Original Author of file: Remi Collet
// Purpose of file: Display tab on CronTask form
// ----------------------------------------------------------------------
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;
}
$crontask = new CronTask();
if ($_POST['id'] > 0 && $crontask->getFromDB($_POST['id'])) {
    switch ($_REQUEST['glpi_tab']) {
        case -1:
            $crontask->showStatistics();
            $crontask->showHistory();
            Plugin::displayAction($crontask, $_REQUEST['glpi_tab']);
            break;
        case 2:
            $crontask->showHistory();
            break;
        default:
            if (!Plugin::displayAction($crontask, $_REQUEST['glpi_tab'])) {
                $crontask->showStatistics();
            }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:crontask.tabs.php

示例2: switch

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();
            }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:contract.tabs.php

示例3: switch

    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;
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:budget.tabs.php

示例4: switch

    switch ($_REQUEST['glpi_tab']) {
        case -1:
            Consumable::showAddForm($consumable);
            Consumable::showForItem($consumable);
            Consumable::showForItem($consumable, 1);
            Infocom::showForItem($consumable);
            Document::showAssociated($consumable);
            Link::showForItem('ConsumableItem', $_POST["id"]);
            Plugin::displayAction($consumable, $_REQUEST['glpi_tab']);
            break;
        case 4:
            Infocom::showForItem($consumable);
            break;
        case 5:
            Document::showAssociated($consumable);
            break;
        case 7:
            Link::showForItem('ConsumableItem', $_POST["id"]);
            break;
        case 10:
            showNotesForm($_POST['target'], 'ConsumableItem', $_POST["id"]);
            break;
        default:
            if (!Plugin::displayAction($consumable, $_REQUEST['glpi_tab'])) {
                Consumable::showAddForm($consumable);
                Consumable::showForItem($consumable);
                Consumable::showForItem($consumable, 1);
            }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:consumableitem.tabs.php

示例5: displayTabContentForItem

 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($tabnum == 49) {
         $pmServicescatalog = new PluginMonitoringServicescatalog();
         $pmDisplay = new PluginMonitoringDisplay();
         // $pmDisplay->showCounters("Businessrules");
         $pmServicescatalog->showChecks();
     } else {
         if ($tabnum == 50) {
             $pmContact_Item = new PluginMonitoringContact_Item();
             $pmContact_Item->showContacts("PluginMonitoringServicescatalog", $item->getID());
         } else {
             Plugin::load('monitoring', true);
             Plugin::displayAction($appliance, $_POST['glpi_tab']);
         }
     }
     return true;
 }
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:18,代码来源:servicescatalog.class.php

示例6: Ticketvalidation

            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"])) {
                $satisfaction->showSatisfactionForm($ticket);
            } else {
                echo "<p class='center b'>" . $LANG['satisfaction'][2] . "</p>";
            }
            break;
        default:
            if (!Plugin::displayAction($ticket, $_REQUEST['glpi_tab'])) {
                $fup = new TicketFollowup();
                $fup->showSummary($ticket);
            }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:ticket.tabs.php

示例7: define

You should have received a copy of the GNU General Public License
along with GLPI; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--------------------------------------------------------------------------
*/
// ----------------------------------------------------------------------
// Original Author of file:
// Purpose of file:
// ----------------------------------------------------------------------
define('GLPI_ROOT', '..');
include GLPI_ROOT . "/inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
header_nocache();
checkRight("config", 'r');
if (isset($_POST['id']) && $_POST['id'] > 0) {
    if (!isset($_REQUEST['glpi_tab'])) {
        exit;
    }
    $translation = new NotificationTemplateTranslation();
    $translation->getFromDB($_POST['id']);
    switch ($_REQUEST['glpi_tab']) {
        case 12:
            Log::showForItem($translation);
            break;
        default:
            if (!Plugin::displayAction($translation, $_REQUEST['glpi_tab'])) {
            }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:30,代码来源:notificationtemplatetranslation.tabs.php

示例8: define

but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GLPI; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--------------------------------------------------------------------------
*/
// ----------------------------------------------------------------------
// Original Author of file: Julien Dombre
// 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;
}
$validation = new TicketValidation();
if ($_POST["id"] > 0 && $validation->getFromDB($_POST["id"])) {
    switch ($_REQUEST['glpi_tab']) {
        default:
            Plugin::displayAction($validation, $_REQUEST['glpi_tab']);
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:ticketvalidation.tabs.php

示例9: checkRight

}
if (!isset($_REQUEST['glpi_tab'])) {
    exit;
}
if (!isset($_POST["sort"])) {
    $_POST["sort"] = "";
}
if (!isset($_POST["order"])) {
    $_POST["order"] = "";
}
checkRight("software", "r");
$version = new SoftwareVersion();
if ($_POST["id"] > 0 && $version->can($_POST["id"], 'r')) {
    switch ($_REQUEST['glpi_tab']) {
        case -1:
            Computer_SoftwareVersion::showForVersion($version);
            Plugin::displayAction($version, $_REQUEST['glpi_tab']);
            break;
        case 2:
            Computer_SoftwareVersion::showForVersion($version);
            break;
        case 12:
            Log::showForItem($version);
            break;
        default:
            if (!Plugin::displayAction($version, $_REQUEST['glpi_tab'])) {
                Computer_SoftwareVersion::showForVersionByEntity($version);
            }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:softwareversion.tabs.php

示例10: 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();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:softwarelicense.tabs.php

示例11: showNotesForm

            $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);
            }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:cartridgeitem.tabs.php

示例12: header

include GLPI_ROOT . "/inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
header_nocache();
$notification = new Notification();
if (isset($_POST['id']) && $_POST['id'] > 0 && $notification->can($_POST['id'], 'r')) {
    if (!isset($_REQUEST['glpi_tab'])) {
        exit;
    }
    $target = NotificationTarget::getInstanceByType($notification->getField('itemtype'), $notification->getField('event'), array('entities_id' => $notification->getField('entities_id')));
    switch ($_REQUEST['glpi_tab']) {
        case -1:
            if ($target) {
                $target->showForNotification($notification);
            }
            Plugin::displayAction($notification, $_REQUEST['glpi_tab']);
            break;
        case 1:
            if ($target) {
                $target->showForNotification($notification);
            }
            break;
        case 12:
            $notification->getFromDB($_POST["id"]);
            Log::showForItem($notification);
            break;
        default:
            if (!Plugin::displayAction($notification, $_REQUEST['glpi_tab'])) {
            }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:notification.tabs.php

示例13: 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)
 {
     if (!$this->isNewID($ID)) {
         switch ($tab) {
             case -1:
                 Plugin::displayAction($this, $tab);
                 $this->displayMoreTabs($tab);
                 return false;
             default:
                 $this->displayMoreTabs($tab);
                 return Plugin::displayAction($this, $tab);
         }
     }
     return false;
 }
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:23,代码来源:commondropdown.class.php

示例14: showNotesForm

            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'])) {
                    Computer_Item::showForItem($phone);
                    NetworkPort::showForItem('Phone', $_POST["id"], 'Phone', $_POST["withtemplate"]);
                }
        }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:phone.tabs.php

示例15: Config

            break;
        case 3:
            Ticket::showListForUser($_POST["id"]);
            break;
        case 4:
            Group_User::showForUser($user);
            break;
        case 5:
            Document::showAssociated($user);
            break;
        case 6:
            $config = new Config();
            $user->computePreferences();
            $config->showFormUserPrefs($user->fields);
            break;
        case 11:
            Reservation::showForUser($_POST["id"]);
            break;
        case 12:
            Auth::showSynchronizationForm($_POST["id"]);
            break;
        case 13:
            Log::showForItem($user);
            break;
        default:
            if (!Plugin::displayAction($user, $_REQUEST['glpi_tab'])) {
                Profile_User::showForUser($user);
            }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:user.tabs.php


注:本文中的Plugin::displayAction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。