fcf.Context class

Information about the session context.

Class description Properties
bool debug - Debug mode flag. JS files are sent to the client in their original form.
string language - The name of the two-letter language used by the client
fcf.RouteInfo route - Information about request
object session - User and Session Information
Methods
mixed get(string a_name) - Returns the requested value of the context property. Used in the tokenizer, because it uses a secure copy of the context, which does not have filled in fields, but allows you to get information about them through the method.
Properties
debug Type: bool Debug mode flag. JS files are sent to the client in their original form.
language Type: string The name of the two-letter language used by the client
route Type: fcf.RouteInfo Information about request
session Type: object User and Session Information The object has the following form: { id: "SESSION_ID", user: { // User Information user: "USER_NAME" groups: { "GROUP_NAME_OF_USER": "GROUP_NAME_OF_USER" }, roles: { "ROLE_NAME_OF_USER": "ROLE_NAME_OF_USER" }, } } Example: { "id": "dad98b2e768010923aaa20884e6fa7b68ac0e70e7d48e2f993fc0fbe89c071ed" "user": { "user": "root", "groups": { "root": "root" } "roles": { "root": "root" }, }, }
Methods
mixed get(string a_name) Returns the requested value of the context property. Used in the tokenizer, because it uses a secure copy of the context, which does not have filled in fields, but allows you to get information about them through the method. Arguments: string a_name - Parameter name Return value: mixed Stored value