protected function params($check = null) {
        $params = $this->view->getParams();
        if ($check) {
            if (is_array($check)) {
                $inter = array_intersect($check, $params);
                return (count($inter) === count($check));
            }
            else {
                return in_array($check, $params);
            }
        }
        return $params;
    }
protected function params($check = null) {
        $params = $this->view->getParams();
        if ($check) {
            if (is_array($check)) {
                $inter = array_intersect($check, $params);
                return (count($inter) === count($check));
            }
            else {
                return in_array($check, $params);
            }
        }
        return $params;
    }
protected function params ( $ check = null ) { $ params = $ this -> view -> getParams ( ) ; if ( $ check ) { if ( is_array ( $ check ) ) { $ inter = array_intersect ( $ check , $ params ) ; return ( count ( $ inter ) === count ( $ check ) ) ; } else { return in_array ( $ check , $ params ) ; } } return $ params ; }
Fetches the parameters set to the current action
@param mixed $check Compare the parameters with this and return boolean.
If array, return TRUE if all values are in parameters. If not array,
return TRUE if exists in parameters
@return mixed
Fetches the parameters set to the current action