ResultSet::__construct PHP Méthode

__construct() public méthode

public __construct ( $columnTypes = null, $rows = null )
        public function __construct($columnTypes = null, $rows = null)
        {
            $this->columnTypes = $columnTypes;
            $this->rows = $rows;
        }

Usage Example

 /**
  * 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);
 }
All Usage Examples Of ResultSet::__construct