Reloads the query adapter when it has not been initialized.
Should none be set, it instantiates it with the correct default values.
@return Query
766605
private function reloadQueryAdapter()
    {
        if (is_null($this->activeQuery)) {
            $this->activeQuery = $this->getQueryAdapter();
            $this->activeQuery->type($this->getWordpressKey());
        }

        return $this->activeQuery;
    }
1342448
public function reset()
    {
        $this->start = null;
        $this->range = null;
        $this->sort = null;
        $this->sortDirection = null;
        $this->search = null;
        $this->searchNotes = null;
        $this->condition = null;
        return $this;
    }
90101
public function get_lastQuery() {
		$retval = null;
		if(is_object($this->sth)) {
			$retval = $this->sth->queryString;
		}
		else {
			throw new \Exception(__METHOD__ .': statement handle not set');
		}
		return($retval);
	}
38907
function LoadCurrent()
    {
        $this->user = null;
        $userID = null;
        if (isset($_SESSION[self::$sessionParam]))
             $userID = $_SESSION[self::$sessionParam];
        
        if ($userID)
        {
            $user = new User($userID);
            if ($user->Exists())
                $this->user = $user;
        }
        return $this->user !== null;
    }
624140
public function reset()
    {

        $this->oosql_limit = null;

        $this->oosql_order = null;

        $this->oosql_where = null;

        $this->oosql_join = null;

        $this->oosql_stmt = null;

        $this->oosql_conValues = array();

        $this->oosql_numargs = null;

        $this->oosql_fromFlag = false;

        $this->oosql_multiFlag = false;

        $this->oosql_del_multiFlag = false;

        $this->oosql_multi = array();

        $this->oosql_del_numargs = null;

        $this->oosql_sql = null;

        $this->oosql_select = null;

        $this->oosql_distinct = false;

        $this->oosql_insert = false;

        $this->oosql_sub = false;

        $this->oosql_table_alias = null;

        $this->oosql_fields = array();

        $this->oosql_entity_obj = null;

        $this->oosql_in = null;

        $this->oosql_between = null;

        $this->oosql_fetchChanged = null;

        $this->oosql_group = null;

        $this->oosql_prepParams = null;

        return $this;
    }
745866
public function reload(): WebAcl {
        $fedora         = $this->res->getFedora();
        $resUri         = $this->res->getUri(true);
        $aclUri         = $this->res->getAclUrl();
        $this->resRules = [];
        $this->extRules = [];

        if ($aclUri) {
            $query   = new SimpleQuery(self::QUERY, [$resUri, $aclUri]);
            $results = $fedora->runQuery($query);
            $rules   = self::initRules($results, $fedora, $aclUri);
            foreach ($rules as $r) {
                if ($r->hasResource($resUri)) {
                    $this->resRules[] = $r;
                } else {
                    $this->extRules[] = $r;
                }
            }
        }
        return $this;
    }
942687
public function refresh()
	{
		if ($this->isAuthenticated())
		{
			$url       = $this->getLink();
			$jdata     = $this->query($url, null, array('GData-Version' => 2));
			$this->xml = $this->safeXml($jdata->body);

			return $this;
		}

		return false;
	}
97386
public function init()
    {
        if (!$this->getQuery()) {
            throw new \RuntimeException('Uninitialized QueryBuilder');
        }

        $this->resetIterator();
        $this->setNbResults($this->computeNbResult());

        if (0 == $this->getPage() || 0 == $this->getMaxPerPage() || 0 == $this->getNbResults()) {
            $this->setLastPage(0);
            $this->getQuery()->setFirstResult(0);
            $this->getQuery()->setMaxResults(0);
        } else {
            $offset = ($this->getPage() - 1) * $this->getMaxPerPage();
            $this->setLastPage(ceil($this->getNbResults() / $this->getMaxPerPage()));
            $this->getQuery()->setFirstResult($offset);
            $this->getQuery()->setMaxResults($this->getMaxPerPage());
        }
    }
718373
public function reset()
    {
        $this->data = [];

        // Get the default values for the class from the table.
        foreach ((array) $this->getFields() as $k => $v) {
            $this->data[$k] = null;
        }

        return $this;
    }
678994
public function loadAssoc()
	{
		// Initialise variables
		$return = null;

		// Execute the query
		if (!$this->execute())
		{
			return null;
		}

		// Get the first row from the result set as an associative array
		if ($row = $this->fetchAssoc())
		{
			$return = $row;
		}

		// Free up system resources and return
		$this->freeResult();

		return $return;
	}
734626
protected function reset() {
        $this->activePattern = false;
        $this->activeFilters = [];
        $this->activeTransformations = [];
        $this->insert_records = [];
        $this->set = [];
        $queryclass = get_class($this->query);
        $this->query = new $queryclass();
    }
113710
public function rewind()
    {
        if ($this->queryHasBegun && $this->numRecords() > 0) {
            $this->queryHasBegun = false;
            $this->currentRecord = null;
            return $this->seek(0);
        }
        return null;
    }
714019
public function reset()
	{
		$this->_table = NULL;

		$this->_where    = array();
		$this->_order_by = array();

		$this->_parameters = array();

		$this->_limit = NULL;

		return $this;
	}
1227231
public function resetAdapters()
    {
        $listeners = $this->getEventManager()->getListeners('authenticate');
        foreach ($listeners as $listener) {
            $listener = $listener->getCallback();
            if (is_array($listener) && $listener[0] instanceof ChainableAdapterInterface) {
                $listener[0]->getStorage()->clear();
            }
        }

        return $this;
    }
939711
protected function queryValues()
    {
        foreach($this->defaultQueryParameters as $parameter => $validator){
            $value = request($parameter);
            if($value) {
                $this->{$parameter} = $value;
            }
        }

        return $this;
    }
594475
public function reset()
    {
        foreach (array_keys($this->_loaded) as $name) {
            $this->unload($name);
        }

        return $this;
    }
810613
public function reload()
    {
        $class = $this->getRemoteClass();
        $count = false;
        $limit = null;
        if ($this->uniqueRemote) {
            $limit = 1;
        }
        $this->remoteModels = (new $class)->entity->fetchByRelated($this->relatedAttributeName, $this->model, $limit, null, $count, $this->filterList);
    }