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


PHP MetaModel::RecordQueryTrace方法代码示例

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


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

示例1: output

 public function output()
 {
     if (class_exists('MetaModel')) {
         MetaModel::RecordQueryTrace();
     }
     if (class_exists('ExecutionKPI')) {
         ExecutionKPI::ReportStats();
     }
 }
开发者ID:kira8565,项目名称:ITOP203-ZHCN,代码行数:9,代码来源:clipage.class.inc.php

示例2: output

 public function output()
 {
     if (!$this->m_bPassThrough) {
         $this->s_content = "<?xml version=\"1.0\" encoding=\"UTF-8\"?" . ">\n" . trim($this->s_content);
         $this->add_header("Content-Length: " . strlen($this->s_content));
         foreach ($this->a_headers as $s_header) {
             header($s_header);
         }
         echo $this->s_content;
     }
     if (class_exists('MetaModel')) {
         MetaModel::RecordQueryTrace();
     }
 }
开发者ID:kira8565,项目名称:ITOP203-ZHCN,代码行数:14,代码来源:xmlpage.class.inc.php

示例3: output

 public function output()
 {
     $this->add_header("Content-Length: " . strlen(trim($this->s_content)));
     foreach ($this->a_headers as $s_header) {
         header($s_header);
     }
     echo trim($this->s_content);
     echo "\n";
     if (class_exists('MetaModel')) {
         MetaModel::RecordQueryTrace();
     }
     if (class_exists('ExecutionKPI')) {
         ExecutionKPI::ReportStats();
     }
 }
开发者ID:kira8565,项目名称:ITOP203-ZHCN,代码行数:15,代码来源:csvpage.class.inc.php

示例4: output


//.........这里部分代码省略.........
\t\t\t\t// specified. Note that if you define a callback for the 'select' event, it
\t\t\t\t// will be executed for the selected tab whenever the hash changes.
\t\t\t\ttabs.tabs({ event: 'change' });
\t\t\t\t  
\t\t\t\t// Define our own click handler for the tabs, overriding the default.
\t\t\t\ttabs.find( tab_a_selector ).click(function()
\t\t\t\t{
\t\t\t\t\tvar state = {};
\t\t\t\t\t\t\t  
\t\t\t\t\t// Get the id of this tab widget.
\t\t\t\t\tvar id = \$(this).closest( 'div[id^=tabbedContent]' ).attr( 'id' );
\t\t\t\t\t  
\t\t\t\t\t// Get the index of this tab.
\t\t\t\t\tvar idx = \$(this).parent().prevAll().length;
\t\t\t\t\t
\t\t\t\t\t// Set the state!
\t\t\t\t\tstate[ id ] = idx;
\t\t\t\t\t\$.bbq.pushState( state );
\t\t\t\t});
\t\t\t}
\t\t\telse
\t\t\t{
\t\t\t\ttabs.tabs();
\t\t\t}
EOF
);
        }
        // Render the tabs in the page (if any)
        $this->s_content = $this->m_oTabs->RenderIntoContent($this->s_content);
        // Additional UI widgets to be activated inside the ajax fragment ??
        if ($this->sContentType == 'text/html' && (preg_match('/class="date-pick"/', $this->s_content) || preg_match('/class="datetime-pick"/', $this->s_content))) {
            $this->add_ready_script(<<<EOF
\t\$(".date-pick").datepicker({
\t\t\tshowOn: 'button',
\t\t\tbuttonImage: '../images/calendar.png',
\t\t\tbuttonImageOnly: true,
\t\t\tdateFormat: 'yy-mm-dd',
\t\t\tconstrainInput: false,
\t\t\tchangeMonth: true,
\t\t\tchangeYear: true
\t\t});
\t\$(".datetime-pick").datepicker({
\t\t\tshowOn: 'button',
\t\t\tbuttonImage: '../images/calendar.png',
\t\t\tbuttonImageOnly: true,
\t\t\tdateFormat: 'yy-mm-dd 00:00:00',
\t\t\tconstrainInput: false,
\t\t\tchangeMonth: true,
\t\t\tchangeYear: true
\t\t});
EOF
);
        }
        $s_captured_output = ob_get_contents();
        ob_end_clean();
        if ($this->sContentType == 'text/html' && $this->sContentDisposition == 'inline') {
            // inline content != attachment && html => filter all scripts for malicious XSS scripts
            echo self::FilterXSS($this->s_content);
        } else {
            echo $this->s_content;
        }
        if (!empty($this->m_sMenu)) {
            $uid = time();
            echo "<div id=\"accordion_temp_{$uid}\">\n";
            echo "<div id=\"accordion\">\n";
            echo "<!-- Beginning of the accordion menu -->\n";
            echo self::FilterXSS($this->m_sMenu);
            echo "<!-- End of the accordion menu-->\n";
            echo "</div>\n";
            echo "</div>\n";
            echo "<script type=\"text/javascript\">\n";
            echo "\$('#inner_menu').html(\$('#accordion_temp_{$uid}').html());\n";
            echo "\$('#accordion_temp_{$uid}').remove();\n";
            echo "\$('#accordion').accordion({ header: 'h3', navigation: true, autoHeight: false, collapsible: false, icons: false });\n";
            echo "\n</script>\n";
        }
        //echo $this->s_deferred_content;
        if (count($this->a_scripts) > 0) {
            echo "<script type=\"text/javascript\">\n";
            echo implode("\n", $this->a_scripts);
            echo "\n</script>\n";
        }
        if (!empty($this->s_deferred_content)) {
            echo "<script type=\"text/javascript\">\n";
            echo "\$('body').append('" . addslashes(str_replace("\n", '', $this->s_deferred_content)) . "');\n";
            echo "\n</script>\n";
        }
        if (!empty($this->m_sReadyScript)) {
            echo "<script type=\"text/javascript\">\n";
            echo $this->m_sReadyScript;
            // Ready Scripts are output as simple scripts
            echo "\n</script>\n";
        }
        if (trim($s_captured_output) != "") {
            echo self::FilterXSS($s_captured_output);
        }
        if (class_exists('MetaModel')) {
            MetaModel::RecordQueryTrace();
        }
    }
开发者ID:kira8565,项目名称:ITOP203-ZHCN,代码行数:101,代码来源:ajaxwebpage.class.inc.php

示例5: output

 /**
  * Outputs (via some echo) the complete HTML page by assembling all its elements
  */
 public function output()
 {
     foreach ($this->a_headers as $s_header) {
         header($s_header);
     }
     $s_captured_output = ob_get_contents();
     ob_end_clean();
     echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
     echo "<html>\n";
     echo "<head>\n";
     echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";
     echo "<title>" . htmlentities($this->s_title, ENT_QUOTES, 'UTF-8') . "</title>\n";
     echo $this->get_base_tag();
     foreach ($this->a_linked_scripts as $s_script) {
         // Make sure that the URL to the script contains the application's version number
         // so that the new script do NOT get reloaded from the cache when the application is upgraded
         if (strpos($s_script, '?') === false) {
             $s_script .= "?itopversion=" . ITOP_VERSION;
         } else {
             $s_script .= "&itopversion=" . ITOP_VERSION;
         }
         echo "<script type=\"text/javascript\" src=\"{$s_script}\"></script>\n";
     }
     if (count($this->a_scripts) > 0) {
         echo "<script type=\"text/javascript\">\n";
         foreach ($this->a_scripts as $s_script) {
             echo "{$s_script}\n";
         }
         echo "</script>\n";
     }
     $this->output_dict_entries();
     foreach ($this->a_linked_stylesheets as $a_stylesheet) {
         if ($a_stylesheet['condition'] != "") {
             echo "<!--[if {$a_stylesheet['condition']}]>\n";
         }
         echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"{$a_stylesheet['link']}\" />\n";
         if ($a_stylesheet['condition'] != "") {
             echo "<![endif]-->\n";
         }
     }
     if (count($this->a_styles) > 0) {
         echo "<style>\n";
         foreach ($this->a_styles as $s_style) {
             echo "{$s_style}\n";
         }
         echo "</style>\n";
     }
     if (class_exists('MetaModel') && MetaModel::GetConfig()) {
         echo "<link rel=\"shortcut icon\" href=\"" . utils::GetAbsoluteUrlAppRoot() . "images/favicon.ico\" />\n";
     }
     echo "</head>\n";
     echo "<body>\n";
     echo self::FilterXSS($this->s_content);
     if (trim($s_captured_output) != "") {
         echo "<div class=\"raw_output\">" . self::FilterXSS($s_captured_output) . "</div>\n";
     }
     echo '<div id="at_the_end">' . self::FilterXSS($this->s_deferred_content) . '</div>';
     echo "</body>\n";
     echo "</html>\n";
     if (class_exists('MetaModel')) {
         MetaModel::RecordQueryTrace();
     }
     if (class_exists('ExecutionKPI')) {
         ExecutionKPI::ReportStats();
     }
 }
开发者ID:kira8565,项目名称:ITOP203-ZHCN,代码行数:69,代码来源:webpage.class.inc.php

示例6: output


//.........这里部分代码省略.........
            $sApplicationBanner .= $sBannerExtraHtml;
            if (!empty($sNorthPane)) {
                $sNorthPane = '<div id="bottom-pane" class="ui-layout-north">' . $sNorthPane . '</div>';
            }
            if (!empty($sSouthPane)) {
                $sSouthPane = '<div id="bottom-pane" class="ui-layout-south">' . $sSouthPane . '</div>';
            }
            $sIconUrl = Utils::GetConfig()->Get('app_icon_url');
            $sOnlineHelpUrl = MetaModel::GetConfig()->Get('online_help');
            //$sLogOffMenu = "<span id=\"logOffBtn\" style=\"height:55px;padding:0;margin:0;\"><img src=\"../images/onOffBtn.png\"></span>";
            $sDisplayIcon = utils::GetAbsoluteUrlAppRoot() . 'images/itop-logo.png';
            if (file_exists(MODULESROOT . 'branding/main-logo.png')) {
                $sDisplayIcon = utils::GetAbsoluteUrlModulesRoot() . 'branding/main-logo.png';
            }
            $sHtml .= $sNorthPane;
            $sHtml .= '<div id="left-pane" class="ui-layout-west">';
            $sHtml .= '<!-- Beginning of the left pane -->';
            $sHtml .= ' <div class="ui-layout-north">';
            $sHtml .= ' <div id="header-logo">';
            $sHtml .= ' <div id="top-left"></div><div id="logo"><a href="' . htmlentities($sIconUrl, ENT_QUOTES, 'UTF-8') . '"><img src="' . $sDisplayIcon . '" title="' . htmlentities($sVersionString, ENT_QUOTES, 'UTF-8') . '" style="border:0; margin-top:16px; margin-right:40px;"/></a></div>';
            $sHtml .= ' </div>';
            $sHtml .= ' <div class="header-menu">';
            if (!MetaModel::GetConfig()->Get('demo_mode')) {
                $sHtml .= '		<div class="icon ui-state-default ui-corner-all"><span id="tPinMenu" class="ui-icon ui-icon-pin-w">pin</span></div>';
            }
            $sHtml .= '		<div style="text-align:center;">' . self::FilterXSS($sForm) . '</div>';
            $sHtml .= ' </div>';
            $sHtml .= ' </div>';
            $sHtml .= ' <div id="menu" class="ui-layout-center">';
            $sHtml .= '		<div id="inner_menu">';
            $sHtml .= '			<div id="accordion">';
            $sHtml .= self::FilterXSS($this->m_sMenu);
            $sHtml .= '			<!-- Beginning of the accordion menu -->';
            $sHtml .= '			<!-- End of the accordion menu-->';
            $sHtml .= '			</div>';
            $sHtml .= '		</div> <!-- /inner menu -->';
            $sHtml .= ' </div> <!-- /menu -->';
            $sHtml .= ' <div class="footer ui-layout-south"><div id="combodo_logo"><a href="http://www.combodo.com" title="www.combodo.com" target="_blank"><img src="../images/logo-combodo.png"/></a></div></div>';
            $sHtml .= '<!-- End of the left pane -->';
            $sHtml .= '</div>';
            $sHtml .= '<div class="ui-layout-center">';
            $sHtml .= ' <div id="top-bar" style="width:100%">';
            $sHtml .= self::FilterXSS($sApplicationBanner);
            $sHtml .= '		<div id="global-search"><form action="' . utils::GetAbsoluteUrlAppRoot() . 'pages/UI.php"><table><tr><td></td><td id="g-search-input"><input type="text" name="text" value="' . $sText . '"' . $sOnClick . '/></td>';
            $sHtml .= '<td><input type="image" src="../images/searchBtn.png"/></a></td>';
            $sHtml .= '<td><a style="background:transparent;" href="' . $sOnlineHelpUrl . '" target="_blank"><img style="border:0;padding-left:20px;padding-right:10px;" title="' . Dict::S('UI:Help') . '" src="../images/help.png"/></td>';
            $sHtml .= '<td style="padding-right:20px;padding-left:10px;">' . self::FilterXSS($sLogOffMenu) . '</td><td><input type="hidden" name="operation" value="full_text"/></td></tr></table></form></div>';
            //echo '<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="hidden" name="operation" value="full_text"/></td></tr></table></form></div>';
            $sHtml .= ' </div>';
            $sHtml .= ' <div class="ui-layout-content" style="overflow:auto;">';
            $sHtml .= ' <!-- Beginning of page content -->';
            $sHtml .= self::FilterXSS($this->s_content);
            $sHtml .= ' <!-- End of page content -->';
            $sHtml .= ' </div>';
            $sHtml .= '</div>';
            $sHtml .= $sSouthPane;
            // Add the captured output
            if (trim($s_captured_output) != "") {
                $sHtml .= "<div id=\"rawOutput\" title=\"Debug Output\"><div style=\"height:500px; overflow-y:auto;\">" . self::FilterXSS($s_captured_output) . "</div></div>\n";
            }
            $sHtml .= "<div id=\"at_the_end\">" . self::FilterXSS($this->s_deferred_content) . "</div>";
            $sHtml .= "<div style=\"display:none\" title=\"ex2\" id=\"ex2\">Please wait...</div>\n";
            // jqModal Window
            $sHtml .= "<div style=\"display:none\" title=\"dialog\" id=\"ModalDlg\"></div>";
            $sHtml .= "<div style=\"display:none\" id=\"ajax_content\"></div>";
        } else {
            $sHtml .= self::FilterXSS($this->s_content);
        }
        $sHtml .= "</body>\n";
        $sHtml .= "</html>\n";
        if ($this->GetOutputFormat() == 'html') {
            $oKPI = new ExecutionKPI();
            echo $sHtml;
            $oKPI->ComputeAndReport('Echoing (' . round(strlen($sHtml) / 1024) . ' Kb)');
        } else {
            if ($this->GetOutputFormat() == 'pdf' && $this->IsOutputFormatAvailable('pdf')) {
                require_once APPROOT . 'lib/MPDF/mpdf.php';
                $oMPDF = new mPDF('c');
                $oMPDF->mirroMargins = false;
                if ($this->a_base['href'] != '') {
                    $oMPDF->setBasePath($this->a_base['href']);
                    // Seems that the <BASE> tag is not recognized by mPDF...
                }
                $oMPDF->showWatermarkText = true;
                if ($this->GetOutputOption('pdf', 'template_path')) {
                    $oMPDF->setImportUse();
                    // Allow templates
                    $oMPDF->SetDocTemplate($this->GetOutputOption('pdf', 'template_path'), 1);
                }
                $oMPDF->WriteHTML($sHtml);
                $sOutputName = $this->s_title . '.pdf';
                if ($this->GetOutputOption('pdf', 'output_name')) {
                    $sOutputName = $this->GetOutputOption('pdf', 'output_name');
                }
                $oMPDF->Output($sOutputName, 'I');
            }
        }
        MetaModel::RecordQueryTrace();
        ExecutionKPI::ReportStats();
    }
开发者ID:kira8565,项目名称:ITOP203-ZHCN,代码行数:101,代码来源:itopwebpage.class.inc.php


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