public function __construct($columnTypes = null, $rows = null)
{
$this->columnTypes = $columnTypes;
$this->rows = $rows;
}
/** * Constructor * * @param resource handle */ public function __construct($result, TimeZone $tz = NULL) { $fields = array(); if (is_object($result)) { while ($field = $result->fetch_field()) { $fields[$field->name] = $field->type; } } parent::__construct($result, $fields, $tz); }