class UserServiceUtil (View source)

Constants

HTTP_X_APPENGINE

Methods

static The
getUserEnvironmentVariable(string $var_name)

Retrieve an environment variable specifically for the UserService.

Details

static The getUserEnvironmentVariable(string $var_name)

Retrieve an environment variable specifically for the UserService.

Under managed VMs, the UserService environment variables are sent as HTTP headers with the prefix 'HTTP_X_APPENGINE_'. This function first checks if the environment variable is set, and if not checks if it is set with the prefix string.

Parameters

string $var_name The variable name to check.

Return Value

The environment value, or false if not found.