Ejemplo n.º 1
0
 /**
  * Загрузка профайлера базы данных
  * 
  * @return void
  */
 protected function setProfiler()
 {
     if ($this->_cnf['resources']['db']['params']['profiler']) {
         $profiler = $this->_boot->getResource('Db')->getProfiler();
         $this->view->assign('SqlTotal', $profiler->getTotalElapsedSecs());
         $this->view->assign('SqlQueries', $profiler->getTotalNumQueries());
         //print_r($profiler);
     }
 }
Ejemplo n.º 2
0
 /**
  * Возвращает объект кеша определенного ресурса
  *
  * @param string $identity Идентификатор ресурса кеша
  * @return Zend_Cache_Core
  */
 public function getCache($identity)
 {
     return $this->_boot->getPluginResource('Cachemanager')->getCacheManager()->getCache($identity);
 }