public function transform( $name = null, $default = null )
	{
		if( $name === null ) {
			return $this->_params;
		}

		$parts = explode( '/', trim( $name, '/' ) );
		$param = $this->_params;

		foreach( $parts as $part )
		{
			if( isset( $param[$part] ) ) {
				$param = $param[$part];
			} else {
				return $default;
			}
		}

		return $param;
	}
public function transform( $name = null, $default = null )
	{
		if( $name === null ) {
			return $this->_params;
		}

		$parts = explode( '/', trim( $name, '/' ) );
		$param = $this->_params;

		foreach( $parts as $part )
		{
			if( isset( $param[$part] ) ) {
				$param = $param[$part];
			} else {
				return $default;
			}
		}

		return $param;
	}
public function transform ( $ name = null , $ default = null ) { if ( $ name === null ) { return $ this -> _params ; } $ parts = explode ( '/' , trim ( $ name , '/' ) ) ; $ param = $ this -> _params ; foreach ( $ parts as $ part ) { if ( isset ( $ param [ $ part ] ) ) { $ param = $ param [ $ part ] ; } else { return $ default ; } } return $ param ; }
Returns the parameter value.

@param string|null $name Name of the parameter key or null for all parameters
@param string $default Default value if parameter key is not available
@return mixed Parameter value or associative list of key/value pairs
Returns the parameter value .