code/libraries/joomlatools/library/filter/chain.php
public function addFilter(KFilterInterface $filter, $priority = null)
    {
        //Store reference to be used for filter chaining
        $this->_last = $filter;

        //Enqueue the filter
        $this->_queue->enqueue($filter, $priority);
        return $this;
    }
public function addFilter(KFilterInterface $filter, $priority = null)
    {
        //Store reference to be used for filter chaining
        $this->_last = $filter;

        //Enqueue the filter
        $this->_queue->enqueue($filter, $priority);
        return $this;
    }
public function addFilter ( KFilterInterface $ filter , $ priority = null ) { //Store reference to be used for filter chaining $ this -> _last = $ filter ; //Enqueue the filter $ this -> _queue -> enqueue ( $ filter , $ priority ) ; return $ this ; }
Add a filter to the queue based on priority

@param KFilterInterface  $filter A Filter
@param integer           $priority The command priority, usually between 1 (high priority) and 5 (lowest),
default is 3. If no priority is set, the command priority will be used
instead.

@return KFilterChain
Add a filter to the queue based on priority