protected static function RestfulBase::notImplementedCrudOperation in RESTful 7
Helper method with the code to run for non implemented CRUD operations.
Parameters
string $operation: The crud operation.
Throws
\RestfulNotImplementedException
5 calls to RestfulBase::notImplementedCrudOperation()
- RestfulBase::create in plugins/
restful/ RestfulBase.php - RestfulBase::index in plugins/
restful/ RestfulBase.php - RestfulBase::remove in plugins/
restful/ RestfulBase.php - RestfulBase::update in plugins/
restful/ RestfulBase.php - RestfulBase::view in plugins/
restful/ RestfulBase.php
File
- plugins/
restful/ RestfulBase.php, line 1715 - Contains RestfulBase.
Class
- RestfulBase
- Class \RestfulBase
Code
protected static function notImplementedCrudOperation($operation) {
// The default behavior is to not support the crud action.
throw new \RestfulNotImplementedException(format_string('The "@method" method is not implemented in class @class.', array(
'@method' => $operation,
'@class' => __CLASS__,
)));
}