getProfiler example


    public function __construct($adapter$sql)
    {
        $this->_adapter = $adapter;
        if ($sql instanceof Zend_Db_Select) {
            $sql = $sql->assemble();
        }
        $this->_parseParameters($sql);
        $this->_prepare($sql);

        $this->_queryId = $this->_adapter->getProfiler()->queryStart($sql);
    }

    /** * Internal method called by abstract statment constructor to setup * the driver level statement * * @return void */
    protected function _prepare($sql)
    {
        return;
    }
Home | Imprint | This part of the site doesn't use cookies.