protected function getResourceParameter()
    {
        if (! $this->hasRequestParameter(self::RESOURCE_PARAMETER)) {
            throw new \common_exception_MissingParameter(self::RESOURCE_PARAMETER, __CLASS__);
        }

        $uri = $this->getRequestParameter(self::RESOURCE_PARAMETER);
        if (empty($uri) || !common_Utils::isUri($uri)) {
            throw new \common_exception_MissingParameter(self::RESOURCE_PARAMETER, __CLASS__);
        }

        return $this->getResource($uri);
    }
protected function getResourceParameter()
    {
        if (! $this->hasRequestParameter(self::RESOURCE_PARAMETER)) {
            throw new \common_exception_MissingParameter(self::RESOURCE_PARAMETER, __CLASS__);
        }

        $uri = $this->getRequestParameter(self::RESOURCE_PARAMETER);
        if (empty($uri) || !common_Utils::isUri($uri)) {
            throw new \common_exception_MissingParameter(self::RESOURCE_PARAMETER, __CLASS__);
        }

        return $this->getResource($uri);
    }
protected function getResourceParameter ( ) { if ( ! $ this -> hasRequestParameter ( self :: RESOURCE_PARAMETER ) ) { throw new \ common_exception_MissingParameter ( self :: RESOURCE_PARAMETER , __CLASS__ ) ; } $ uri = $ this -> getRequestParameter ( self :: RESOURCE_PARAMETER ) ; if ( empty ( $ uri ) || ! common_Utils :: isUri ( $ uri ) ) { throw new \ common_exception_MissingParameter ( self :: RESOURCE_PARAMETER , __CLASS__ ) ; } return $ this -> getResource ( $ uri ) ; }
Extract the resource from http request
The parameter 'uri' must exists and be a valid uri

@return core_kernel_classes_Resource
@throws common_exception_MissingParameter
Extract the resource from http request The parameter uri must exists and be a valid uri