public function getParam($params, $name, $default = null)
    {
        if (is_array($name)) {
            foreach ($name as $test) {
                if (isset($params[$test])) {
                    return $params[$test];
                }
            }
        } elseif (isset($params[$name])) {
            return $params[$name];
        }

        return $default;
    }
public function getParam($params, $name, $default = null)
    {
        if (is_array($name)) {
            foreach ($name as $test) {
                if (isset($params[$test])) {
                    return $params[$test];
                }
            }
        } elseif (isset($params[$name])) {
            return $params[$name];
        }

        return $default;
    }
public function getParam ( $ params , $ name , $ default = null ) { if ( is_array ( $ name ) ) { foreach ( $ name as $ test ) { if ( isset ( $ params [ $ test ] ) ) { return $ params [ $ test ] ; } } } elseif ( isset ( $ params [ $ name ] ) ) { return $ params [ $ name ] ; } return $ default ; }
Get a function or block parameter value

@param  array $params  the parameters array
@param  mixed $name    as single parameter name, or an array of names. In this case, the first defined parameter is returned. Use this for aliases (context, ctx, c)
@param  mixed $default the defaut value if parameter is missing (default to null)
@return mixed the parameter value, or the default value if it is not found.
Get a function or block parameter value