protected function delete($uri=null)
    {
        if (is_null($uri)) {
            //$data = $this->service->deleteAll();
            throw new common_exception_BadRequest('Delete 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");
        }
        return $this->getCrudService()->delete($uri);
    }
protected function delete($uri=null)
    {
        if (is_null($uri)) {
            //$data = $this->service->deleteAll();
            throw new common_exception_BadRequest('Delete 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");
        }
        return $this->getCrudService()->delete($uri);
    }
protected function delete ( $ uri = null ) { if ( is_null ( $ uri ) ) { //$data = $this->service->deleteAll(); throw new common_exception_BadRequest ( 'Delete 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" ) ; } return $ this -> getCrudService ( ) -> delete ( $ uri ) ; }
Method to wrap deleting to service if uri is not null

@param null $uri
@return mixed
@throws common_exception_BadRequest
@throws common_exception_InvalidArgumentType
@throws common_exception_PreConditionFailure
Method to wrap deleting to service if uri is not null