public function getParameter($name, $filter = FILTER_SANITIZE_STRING)
    {
        $parameterMap = $this->getParameterMap();
        if (isset($parameterMap[$name])) {
            return filter_var($parameterMap[$name], $filter);
        }
    }
public function getParameter($name, $filter = FILTER_SANITIZE_STRING)
    {
        $parameterMap = $this->getParameterMap();
        if (isset($parameterMap[$name])) {
            return filter_var($parameterMap[$name], $filter);
        }
    }
public function getParameter ( $ name , $ filter = FILTER_SANITIZE_STRING ) { $ parameterMap = $ this -> getParameterMap ( ) ; if ( isset ( $ parameterMap [ $ name ] ) ) { return filter_var ( $ parameterMap [ $ name ] , $ filter ) ; } }
Returns the parameter with the passed name if available or null
if the parameter not exists.

@param string  $name   The name of the parameter to return
@param integer $filter The filter to use

@return string|null
Returns the parameter with the passed name if available or null if the parameter not exists .