protected function parseDirectives()
    {
        $this->directives = [];

        if (!$this->params) {
            return;
        }

        foreach ($this->params as $key => $value) {
            if ($this->hasDirectiveHandler($key)) {
                $this->directives[$key] = $value;
                unset($this->params[$key]);
            }
        }
    }
protected function parseDirectives()
    {
        $this->directives = [];

        if (!$this->params) {
            return;
        }

        foreach ($this->params as $key => $value) {
            if ($this->hasDirectiveHandler($key)) {
                $this->directives[$key] = $value;
                unset($this->params[$key]);
            }
        }
    }
protected function parseDirectives ( ) { $ this -> directives = [ ] ; if ( ! $ this -> params ) { return ; } foreach ( $ this -> params as $ key => $ value ) { if ( $ this -> hasDirectiveHandler ( $ key ) ) { $ this -> directives [ $ key ] = $ value ; unset ( $ this -> params [ $ key ] ) ; } } }
Directives are all of the other parameters supported by Bolt that do not
relate to an actual filter query. Some examples include 'printquery', 'limit',
'order' or 'returnsingle'.

All these need to parsed and taken out of the params that are sent to the query.
Directives are all of the other parameters supported by Bolt that do not relate to an actual filter query . Some examples include printquery limit order or returnsingle .