Gdn_DataSet::__construct PHP Method

__construct() public method

public __construct ( $Result = null, $DataSetType = null )
    public function __construct($Result = null, $DataSetType = null)
    {
        // Set defaults
        $this->Connection = null;
        $this->_Cursor = -1;
        $this->_PDOStatement = null;
        $this->_Result = $Result;
        if ($DataSetType !== null) {
            $this->_DatasetType = $DataSetType;
        } elseif ($Result) {
            $firstElement = reset($Result);
            if (is_array($firstElement)) {
                $this->_DatasetType = DATASET_TYPE_ARRAY;
            }
        }
    }