$result = dibi::query('SELECT * FROM [table]'); $row = $result->fetch(); $value = $result->fetchSingle(); $table = $result->fetchAll(); $pairs = $result->fetchPairs(); $assoc = $result->fetchAssoc('col1'); $assoc = $result->fetchAssoc('col1[]col2->col3'); unset($result);
Inheritance: implements IDataSource, use trait dibi\Strict
Example #1
0
 /**
  * Result set factory.
  * @param  ResultDriver
  * @return Result
  */
 public function createResultSet(ResultDriver $resultDriver)
 {
     $res = new Result($resultDriver);
     return $res->setFormat(Type::DATE, $this->config['result']['formatDate'])->setFormat(Type::DATETIME, $this->config['result']['formatDateTime']);
 }