public function ServicesContext::getGetVariable in Services 7.3
Access to $_GET variables.
Parameters
string $variable_name: Name of the variable or NULL if all content of $_GET to be returned.
Return value
mixed Value of variable or array of all variables.
Overrides ServicesContextInterface::getGetVariable
File
- servers/
rest_server/ includes/ ServicesContext.inc, line 180
Class
Code
public function getGetVariable($variable_name = NULL) {
if (empty($variable_name)) {
return $this->data['get'];
}
if (isset($this->data['get'][$variable_name])) {
return $this->data['get'][$variable_name];
}
}