Пример #1
0
 /**
  *
  * Queries the database and returns a PDOStatement.
  *
  * @param string $statement The SQL statement to prepare and execute.
  *
  * @param int $fetch_mode The `PDO::FETCH_*` type to set on the returned
  * `PDOStatement::setFetchMode()`.
  *
  * @param mixed $fetch_arg1 The first additional argument to send to
  * `PDOStatement::setFetchMode()`.
  *
  * @param mixed $fetch_arg2 The second additional argument to send to
  * `PDOStatement::setFetchMode()`.
  *
  * @return \PDOStatement
  *
  * @see http://php.net/manual/en/pdo.query.php
  *
  */
 public function query($statement)
 {
     $result = $this->pdo->query($statement);
     $this->logProfiles(__FUNCTION__);
     return $result;
 }