protected function put($uri)
    {
        if (is_null($uri)) {
            throw new common_exception_BadRequest('Update method requires an uri parameter');
        }
        if (!($this->getCrudService()->isInScope($uri))) {
            throw new common_exception_PreConditionFailure("The URI must be a valid resource under the root Class");
        }
        $parameters = $this->getParameters();
        try {
            return $this->getCrudService()->update($uri, $parameters);
        } catch (common_exception_PreConditionFailure $e) {
            throw new common_exception_RestApi($e->getMessage());
        }
    }
protected function put($uri)
    {
        if (is_null($uri)) {
            throw new common_exception_BadRequest('Update method requires an uri parameter');
        }
        if (!($this->getCrudService()->isInScope($uri))) {
            throw new common_exception_PreConditionFailure("The URI must be a valid resource under the root Class");
        }
        $parameters = $this->getParameters();
        try {
            return $this->getCrudService()->update($uri, $parameters);
        } catch (common_exception_PreConditionFailure $e) {
            throw new common_exception_RestApi($e->getMessage());
        }
    }
protected function put ( $ uri ) { if ( is_null ( $ uri ) ) { throw new common_exception_BadRequest ( 'Update method requires an uri parameter' ) ; } if ( ! ( $ this -> getCrudService ( ) -> isInScope ( $ uri ) ) ) { throw new common_exception_PreConditionFailure ( "The URI must be a valid resource under the root Class" ) ; } $ parameters = $ this -> getParameters ( ) ; try { return $ this -> getCrudService ( ) -> update ( $ uri , $ parameters ) ; } catch ( common_exception_PreConditionFailure $ e ) { throw new common_exception_RestApi ( $ e -> getMessage ( ) ) ; } }
Method to wrap to updating to service if uri is not null

@param $uri
@return mixed
@throws common_Exception
@throws common_exception_BadRequest
@throws common_exception_InvalidArgumentType
@throws common_exception_NoContent
@throws common_exception_PreConditionFailure
@throws common_exception_RestApi
Method to wrap to updating to service if uri is not null