コード例 #1
0
ファイル: Pgsql.php プロジェクト: navassouza/zf2
 /**
  * @param Statement $statement
  * @return Pgsql
  */
 public function registerStatementPrototype(Statement $statement)
 {
     $this->statementPrototype = $statement;
     $this->statementPrototype->setDriver($this);
     // needs access to driver to createResult()
     return $this;
 }
コード例 #2
0
ファイル: ProfilingStatement.php プロジェクト: Baft/Zend-Form
 public function execute($parameters = null)
 {
     if ($parameters === null) {
         if ($this->parameterContainer != null) {
             $saveParams = (array) $this->parameterContainer->getNamedArray();
         } else {
             $saveParams = array();
         }
     } else {
         $saveParams = $parameters;
     }
     $stack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
     $queryId = $this->getProfiler()->startQuery($this->getSql(), $saveParams, $stack);
     $result = parent::execute($parameters);
     $this->getProfiler()->endQuery($queryId);
     return $result;
 }