public static function RestfulBase::isValidMethod in RESTful 7
Determines if the HTTP method is one of the known methods.
Parameters
string $method: The method name.
boolean $strict: TRUE if the comparisons are case sensitive.
Return value
boolean TRUE if it is a known method. FALSE otherwise.
2 calls to RestfulBase::isValidMethod()
- restful_menu_access_callback in ./
restful.module - Access callback; Determine access for an API call.
- restful_menu_process_callback in ./
restful.module - Page callback; Return the response for an API call.
File
- plugins/
restful/ RestfulBase.php, line 528 - Contains RestfulBase.
Class
- RestfulBase
- Class \RestfulBase
Code
public static function isValidMethod($method, $strict = TRUE) {
$method = $strict ? $method : strtolower($method);
return static::isReadMethod($method, $strict) || static::isWriteMethod($method, $strict);
}