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


PHP Zend_Db_Adapter_Abstract::setProfiler方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     $this->_db = XenForo_Application::getDb();
     $this->_importModel = XenForo_Model::create('XenForo_Model_Import');
     $this->_db->setProfiler(false);
     // this causes lots of memory usage in debug mode, so stop that
 }
开发者ID:namgiangle90,项目名称:tokyobaito,代码行数:7,代码来源:Abstract.php

示例2: setProfiler

 /**
  * Set the adapter's profiler object.
  *
  * The argument may be a boolean, an associative array, an instance of
  * Zend_Db_Profiler, or an instance of Zend_Config.
  *
  * A boolean argument sets the profiler to enabled if true, or disabled if
  * false.  The profiler class is the adapter's default profiler class,
  * Zend_Db_Profiler.
  *
  * An instance of Zend_Db_Profiler sets the adapter's instance to that
  * object.  The profiler is enabled and disabled separately.
  *
  * An associative array argument may contain any of the keys 'enabled',
  * 'class', and 'instance'. The 'enabled' and 'instance' keys correspond to the
  * boolean and object types documented above. The 'class' key is used to name a
  * class to use for a custom profiler. The class must be Zend_Db_Profiler or a
  * subclass. The class is instantiated with no constructor arguments. The 'class'
  * option is ignored when the 'instance' option is supplied.
  *
  * An object of type Zend_Config may contain the properties 'enabled', 'class', and
  * 'instance', just as if an associative array had been passed instead.
  *
  * @param Zend_Db_Profiler|Zend_Config|array|boolean $profiler db profiler
  * @return Zend_Db_Adapter_Abstract Provides a fluent interface
  * @throws Zend_Db_Profiler_Exception if the object instance or class specified
  *         is not Zend_Db_Profiler or an extension of that class.
  */
 public function setProfiler($profiler)
 {
     return $this->_adapter->setProfiler($profiler);
 }
开发者ID:cwcw,项目名称:cms,代码行数:32,代码来源:Abstract.php

示例3: _activateFirebug

 /**
  * Firebug activation
  */
 private function _activateFirebug()
 {
     $oProfiler = new Zend_Db_Profiler_Firebug('DB Queries');
     $oProfiler->setEnabled(true);
     $this->oDb->setProfiler($oProfiler);
 }
开发者ID:pansot2,项目名称:PadCMS-backend,代码行数:9,代码来源:Action.php


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