FCF 2.0 development in progress...
> > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

fcf.Context class

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

An execution context object that contains information about the enforcement proceedings in the case of the meeting. For more progress information, see Context.

Properties
boolean debug - Debug flag. Used to load original (debug versions) JS modules with fcf.require() and fcf.module() functions
string language - The language used by the user.
fcf.RouteInfo route - An object with information about the current URL route
object session - An object with information about the user, used to determine access rights.
  • object groups = {} - User groups. The key and value is the name of the group. When an object is created, the value is always equal to the default value.

  • object roles = {} - User roles. The key and value is the name of the role. When an object is created, the value is always equal to the default value.

  • string user = "" - Username. When an object is created, the value is always equal to the default value.

Methods
constructor(ExpressRequest a_request)
constructor({url, postArgs, context} a_info)
- Class constructor