public function initQueries()
    {
        $this->queries = array();

        $profiler = Mage::helper('sheep_debug')->getSqlProfiler();
        if ($profiler->getEnabled() && $profiler instanceof Sheep_Debug_Model_Db_Profiler) {
            /** @var Zend_Db_Profiler_Query[] $queries */
            $this->queries = $profiler->getQueryModels() ?: array();
            $this->setQueryCount($profiler->getTotalNumQueries());
            $this->setQueryTime($profiler->getTotalElapsedSecs());
        }
    }
public function initQueries()
    {
        $this->queries = array();

        $profiler = Mage::helper('sheep_debug')->getSqlProfiler();
        if ($profiler->getEnabled() && $profiler instanceof Sheep_Debug_Model_Db_Profiler) {
            
            $this->queries = $profiler->getQueryModels() ?: array();
            $this->setQueryCount($profiler->getTotalNumQueries());
            $this->setQueryTime($profiler->getTotalElapsedSecs());
        }
    }
public function initQueries ( ) { $ this -> queries = array ( ) ; $ profiler = Mage :: helper ( 'sheep_debug' ) -> getSqlProfiler ( ) ; if ( $ profiler -> getEnabled ( ) && $ profiler instanceof Sheep_Debug_Model_Db_Profiler ) { /** @var Zend_Db_Profiler_Query[] $queries */ $ this -> queries = $ profiler -> getQueryModels ( ) ? : array ( ) ; $ this -> setQueryCount ( $ profiler -> getTotalNumQueries ( ) ) ; $ this -> setQueryTime ( $ profiler -> getTotalElapsedSecs ( ) ) ; } }
Sets request query from current sql profiler
Sets request query from current sql profiler