fcf.getContext() function
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
- 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" : ""
}
}