function DB_result::DB_result in Flickr API 5
This constructor sets the object's properties
Parameters
object &$dbh the DB object reference:
resource $result the result resource id:
array $options an associative array with result options:
Return value
void
File
- phpFlickr/
PEAR/ DB.php, line 1018
Class
- DB_result
- This class implements a wrapper for a DB result set
Code
function DB_result(&$dbh, $result, $options = []) {
$this->autofree = $dbh->options['autofree'];
$this->dbh =& $dbh;
$this->fetchmode = $dbh->fetchmode;
$this->fetchmode_object_class = $dbh->fetchmode_object_class;
$this->parameters = $dbh->last_parameters;
$this->query = $dbh->last_query;
$this->result = $result;
$this->statement = empty($dbh->last_stmt) ? null : $dbh->last_stmt;
foreach ($options as $key => $value) {
$this
->setOption($key, $value);
}
}