class base for controllers
A controller is used to implement one or many actions, one method for each action.
| package |
jelix-modules |
|---|---|
| subpackage |
jelix-module |
__construct(\jRequest $request)
boolParam(string $parName, mixed $parDefaultValue = null, boolean $useDefaultIfEmpty = false) : boolean
stringthe name of the request parameter
mixedthe default returned value if the parameter doesn't exists
booleantrue: says to return the default value the value is ""
booleanthe request parameter value
floatParam(string $parName, mixed $parDefaultValue = null, boolean $useDefaultIfEmpty = false) : float
stringthe name of the request parameter
mixedthe default returned value if the parameter doesn't exists
booleantrue: says to return the default value the value is ""
floatthe request parameter value
getResponse(string $name = '', boolean $useOriginal = false) : \jResponse|\jResponseHtml|\jResponseRedirect|\jResponseJson
stringthe name of the response type (ex: "html")
booleantrue:don't use the response object redefined by the application
\jResponse|\jResponseHtml|\jResponseRedirect|\jResponseJsonthe response object
intParam(string $parName, mixed $parDefaultValue = null, boolean $useDefaultIfEmpty = false) : integer
stringthe name of the request parameter
mixedthe default returned value if the parameter doesn't exists
booleantrue: says to return the default value the value is ""
integerthe request parameter value
notfound()
param(string $parName, mixed $parDefaultValue = null, boolean $useDefaultIfEmpty = false) : mixed
stringthe name of the request parameter
mixedthe default returned value if the parameter doesn't exists
booleantrue: says to return the default value if the parameter value is ""
mixedthe request parameter value
params() : array
arrayall request parameters
pluginParams : array
this array should contains all parameters needed by installed plugins for each action, see the documentation of each plugins to know this parameters. keys : name of an action or * for parameters to all action values : array that contains all plugin parameters
| var |
|---|
array
sensitiveParameters :
List of names of parameters that can have sensitive values like password etc. This list is used by the logger for example, to replace values by a dummy value. See also sensitiveParameters into error_handling section of the configuration.
| since | |
|---|---|