Gdn_SQLDriver::reset PHP Method

reset() public method

Resets properties of this object that relate to building a select statement back to their default values. Called by $this->Get() and $this->GetWhere().
public reset ( ) : Gdn_SQLDriver
return Gdn_SQLDriver $this
    public function reset()
    {
        // Check the _NoReset flag.
        switch ($this->_NoReset) {
            case 1:
                $this->_NoReset = 0;
                return;
            case 2:
                return;
        }
        $this->_Selects = array();
        $this->_Froms = array();
        $this->_Joins = array();
        $this->_Wheres = array();
        $this->_WhereConcat = 'and';
        $this->_WhereConcatDefault = 'and';
        $this->_WhereGroupConcat = 'and';
        $this->_WhereGroupConcatDefault = 'and';
        $this->_WhereGroupCount = 0;
        $this->_OpenWhereGroupCount = 0;
        $this->_GroupBys = array();
        $this->_Havings = array();
        $this->_OrderBys = array();
        $this->_AliasMap = array();
        $this->_CacheKey = null;
        $this->_CacheOperation = null;
        $this->_CacheOptions = null;
        $this->_Distinct = false;
        $this->_Limit = false;
        $this->_Offset = false;
        $this->_Order = false;
        $this->_Sets = array();
        $this->_NamedParameters = array();
        $this->_Options = array();
        return $this;
    }