public function EntityShareServerRestAbstract::getRequestMethod in Entity Share 7
Get the method of the request.
Return value
string The HTTP request method (GET, POST etc.).
2 calls to EntityShareServerRestAbstract::getRequestMethod()
- EntityShareServerRestAbstract::handle in modules/
entity_share_server/ includes/ entity_share_server.rest.abstract.inc - Handle the server.
- EntityShareServerRestAbstract::parseRequest in modules/
entity_share_server/ includes/ entity_share_server.rest.abstract.inc - Parse the request.
File
- modules/
entity_share_server/ includes/ entity_share_server.rest.abstract.inc, line 96 - Class for handling Entity Share Rest Server request.
Class
- EntityShareServerRestAbstract
- Abstract Class to manage the EntityShare Rest server.
Code
public function getRequestMethod() {
return $_SERVER['REQUEST_METHOD'];
}