You are here

protected function RESTServer::getCanonicalPathArray in Services 7.3

Explode canonical path to parts by '/'.

Return value

array

3 calls to RESTServer::getCanonicalPathArray()
RESTServer::getControllerArguments in servers/rest_server/includes/RESTServer.inc
Parses controller arguments from request
RESTServer::getResourceName in servers/rest_server/includes/RESTServer.inc
Example. We have endpoint with path 'rest'. Request is done to url /rest/node/1.php'. Name of resource in this case is 'node'.
RESTServer::resolveController in servers/rest_server/includes/RESTServer.inc
Determine controller.

File

servers/rest_server/includes/RESTServer.inc, line 149
Class for handling REST calls.

Class

RESTServer
@file Class for handling REST calls.

Code

protected function getCanonicalPathArray() {
  $canonical_path = $this
    ->getCanonicalPath();
  $canonical_path_array = explode('/', $canonical_path);
  return $canonical_path_array;
}