execute() 공개 메소드

Executes the prepared statement with the given input parameters.
public execute ( array $params = [] )
$params array Array of input parameters
예제 #1
0
파일: sql_debug.php 프로젝트: staabm/redaxo
 public function execute(array $params = [])
 {
     $qry = $this->stmt->queryString;
     $timer = new rex_timer();
     parent::execute($params);
     $err = $errno = '';
     if ($this->hasError()) {
         ++self::$errors;
         $err = parent::getError();
         $errno = parent::getErrno();
     }
     self::$queries[] = ['rows' => $this->getRows(), 'time' => $timer->getFormattedDelta(), 'query' => $qry, 'error' => $err, 'errno' => $errno];
     return $this;
 }