public function parseParams($allowedParams)
    {
        $this->allowedParams = $allowedParams;
        $this->setDefaultParams();

        foreach ($this->rawParams as $checkParam => $value) {
            if (! $paramOptions = $this->getParamOptions($checkParam)) {
                continue;
            }

            $param = $paramOptions['param'];
            $options = $paramOptions['options'];

            $paramValue = $this->getParamValue($param, $options, $value);
            if (isset($this->params[$param]) && is_array($this->params[$param])) {
                $this->params[$param] = array_merge($this->params[$param], $paramValue);
            } else {
                $this->params[$param] = $paramValue;
            }
        }
    }
public function parseParams($allowedParams)
    {
        $this->allowedParams = $allowedParams;
        $this->setDefaultParams();

        foreach ($this->rawParams as $checkParam => $value) {
            if (! $paramOptions = $this->getParamOptions($checkParam)) {
                continue;
            }

            $param = $paramOptions['param'];
            $options = $paramOptions['options'];

            $paramValue = $this->getParamValue($param, $options, $value);
            if (isset($this->params[$param]) && is_array($this->params[$param])) {
                $this->params[$param] = array_merge($this->params[$param], $paramValue);
            } else {
                $this->params[$param] = $paramValue;
            }
        }
    }
public function parseParams ( $ allowedParams ) { $ this -> allowedParams = $ allowedParams ; $ this -> setDefaultParams ( ) ; foreach ( $ this -> rawParams as $ checkParam => $ value ) { if ( ! $ paramOptions = $ this -> getParamOptions ( $ checkParam ) ) { continue ; } $ param = $ paramOptions [ 'param' ] ; $ options = $ paramOptions [ 'options' ] ; $ paramValue = $ this -> getParamValue ( $ param , $ options , $ value ) ; if ( isset ( $ this -> params [ $ param ] ) && is_array ( $ this -> params [ $ param ] ) ) { $ this -> params [ $ param ] = array_merge ( $ this -> params [ $ param ] , $ paramValue ) ; } else { $ this -> params [ $ param ] = $ paramValue ; } } }
Parse query string parameter arguments based on mapped allowed params

@param array $allowedParams
Parse query string parameter arguments based on mapped allowed params