execute() public method

Executes the prepared statement with the given input parameters.
public execute ( array $params = [] )
$params array Array of input parameters
Esempio n. 1
0
 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;
 }