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

fcf.getContext() function

fcf.Context fcf.getContext()

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Returns the current execution context. More information about execution context can be found at Context

Result
fcf.Context
- Current execution context object

Example: Function example

fcf.setContext(new fcf.Context()); fcf.log.tst("", fcf.getContext());

Output:

{ "language" : "en", "debug" : false, "session" : { "user" : { "groups" : {}, "roles" : {}, "user" : "" } }, "route" : { "url" : "", "referer" : "", "uri" : "", "urlArgs" : {}, "urlArgsRaw" : {}, "urlArgsStr" : "", "postArgs" : {}, "postArgsRaw" : {}, "args" : {}, "argsRaw" : {}, "subUri" : "", "anchor" : "", "server" : "", "port" : undefined, "protocol" : "" } }