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


PHP Bundle::quickDisplay方法代码示例

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


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

示例1: CommandHistory

     $ch = new CommandHistory($coh_id);
     $ch->display();
 } elseif (strlen($_GET['cmd_id'])) {
     # Display a specific command for a specific group
     // =========+> HERE DEPLOY ON GROUP
     $params = array('tab' => quickGet('tab'), 'gid' => $_GET['gid']);
     if (isset($_history)) {
         $params['history'] = $_history;
     }
     $bdlink = '';
     if (quickGet('bundle_id')) {
         $params['bundle_id'] = $_GET['bundle_id'];
         // FIXME: the following part (esp. $act) seems to always be overriden by the code below ?!
         $bdl = new Bundle($_GET['bundle_id']);
         displayBreadCrumb();
         $act = $bdl->quickDisplay(array(new ActionItem(_T("Details", "msc"), "viewLogs", "detail", "msc", "msc", "logs")), $params);
         $bdlink = "&bundle_id=" . $_GET['bundle_id'];
     }
     if ($_GET['cmd_id'] == -2) {
         new NotifyWidgetFailure(_T("The group you are working on is empty.", "msc"));
     }
     // display just the selected command
     $cmd = new Command($_GET['cmd_id']);
     displayBreadCrumb();
     $act = $cmd->quickDisplay();
     if ($act) {
         // display all the commands on hosts
         $params = array("gid" => $_GET['gid'] . $bdlink, "cmd_id" => $_GET['cmd_id'], 'divID' => $divName, "tab" => "grouptablogs", "commands" => $command_type);
         if (isset($_history)) {
             $params['history'] = $_history;
         }
开发者ID:pulse-project,项目名称:pulse,代码行数:31,代码来源:viewLogs.php

示例2: CommandOnHost

            $coh = new CommandOnHost($_GET['coh_id']);
            $coh->quickDisplay(); //array(new ActionItem(_T("Details", "msc"),"msctabs","detail","msc", "base", "computers")));
            // display the command on host details
            print "<hr/><br/>";
            $coh_id = $_GET['coh_id'];
            $ch = new CommandHistory($coh_id);
            $ch->display();
        }
    } elseif (strlen($_GET['cmd_id'])) { # Display a specific command for a specific group
        $params = array('tab'=>$_GET['tab'], 'gid'=>$_GET['gid']);
        $bdlink = '';
        if (strlen($_GET['bundle_id'])) {
            $params['bundle_id'] = $_GET['bundle_id'];
            // FIXME: the following part (esp. $act) seems to always be overriden by the code below ?!
            $bdl = new Bundle($_GET['bundle_id']);
            $act = $bdl->quickDisplay(array(new ActionItem(_T("Details", "msc"),"groupmsctabs","detail","msc", "base", "computers")), $params);
            $bdlink = "&bundle_id=".$_GET['bundle_id'];
        }

        if ($_GET['cmd_id'] == -2) { new NotifyWidgetFailure(_T("The group you are working on is empty.", "msc")); }
        // display just the selected command
        $cmd = new Command($_GET['cmd_id']);
        $act = $cmd->quickDisplay();
        if ($act) {
            // display all the commands on hosts
            //$ajax = new AjaxFilterCommands("modules/msc/msc/ajaxLogsFilter.php?gid=".$_GET['gid'].$bdlink."&cmd_id=".$_GET['cmd_id']."&tab=grouptablogs&action=groupmsctabs");
            $params = array(
                "gid" => $_GET['gid'].$bdlink,
                "cmd_id" => $_GET['cmd_id'],
                "tab" => "grouptablogs",
            );            
开发者ID:neoclust,项目名称:mmc,代码行数:31,代码来源:logs.php


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