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


PHP Tinebase_Core::getDbProfiling方法代码示例

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


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

示例1: tearDownAfterClass

 /**
  * tear down after test class
  */
 public static function tearDownAfterClass()
 {
     Tinebase_Core::getDbProfiling();
 }
开发者ID:hernot,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:7,代码来源:TestCase.php

示例2: handle

 /**
  * (non-PHPdoc)
  * @see Tinebase_Server_Interface::handle()
  */
 public function handle(\Zend\Http\Request $request = null, $body = null)
 {
     $method = $this->getRequestMethod();
     if (!in_array($method, array('Tinebase.monitoringCheckDB', 'Tinebase.monitoringCheckConfig'))) {
         Tinebase_Core::initFramework();
         if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) {
             Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' Is cli request. method: ' . $method);
         }
     }
     // prevents problems with missing request uri (@see Sabre\HTTP\Request->getUri())
     if (!isset($_SERVER['REQUEST_URI'])) {
         $_SERVER['REQUEST_URI'] = '';
     }
     $tinebaseServer = new Tinebase_Frontend_Cli();
     $opts = Tinebase_Core::get('opts');
     if (!in_array($method, self::getAnonymousMethods($method))) {
         $tinebaseServer->authenticate($opts->username, $opts->password);
     }
     $result = $tinebaseServer->handle($opts);
     //@todo remove cli session path
     // convert function result to shell return code
     if ($result === NULL || $result === TRUE || !is_int($result)) {
         $result = 0;
     } else {
         if ($result === FALSE) {
             $result = 1;
         }
     }
     // finish profiling here - we won't run in Tinebase_Core again
     Tinebase_Core::finishProfiling();
     Tinebase_Core::getDbProfiling();
     exit($result);
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:37,代码来源:Cli.php


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