Пример #1
0
 /**
  *
  * Fetches an associative array of rows from the database; the rows
  * are represented as associative arrays. The array of rows is keyed
  * on the first column of each row.
  *
  * N.b.: if multiple rows have the same first column value, the last
  * row with that value will override earlier rows.
  *
  * @param string $statement The SQL statement to prepare and execute.
  *
  * @param array $values Values to bind to the query.
  *
  * @param callable $callable A callable to be applied to each of the rows
  * to be returned.
  *
  * @return array
  *
  */
 public function fetchAssoc($statement, array $values = array(), $callable = null)
 {
     $result = $this->pdo->fetchAssoc($statement, $values, $callable);
     $this->logProfiles(__FUNCTION__);
     return $result;
 }