errorCtrl

Extends \jController

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

Methods

__construct

__construct(\jRequest $request) 
inherited

Arguments

$request

\jRequest

the current request object

same as param(), but convert the value to a boolean value. If it isn't a numerical value, return null.

boolParam(string $parName, mixed $parDefaultValue = null, boolean $useDefaultIfEmpty = false) : boolean
inherited

Arguments

$parName

string

the name of the request parameter

$parDefaultValue

mixed

the default returned value if the parameter doesn't exists

$useDefaultIfEmpty

boolean

true: says to return the default value the value is ""

Response

boolean

the request parameter value

same as param(), but convert the value to a float value. If it isn't a numerical value, return null.

floatParam(string $parName, mixed $parDefaultValue = null, boolean $useDefaultIfEmpty = false) : float
inherited

Arguments

$parName

string

the name of the request parameter

$parDefaultValue

mixed

the default returned value if the parameter doesn't exists

$useDefaultIfEmpty

boolean

true: says to return the default value the value is ""

Response

float

the request parameter value

get a response object.

getResponse(string $name = '', boolean $useOriginal = false) : \jResponse|\jResponseHtml|\jResponseRedirect|\jResponseJson
inherited

Arguments

$name

string

the name of the response type (ex: "html")

$useOriginal

boolean

true:don't use the response object redefined by the application

Response

\jResponse|\jResponseHtml|\jResponseRedirect|\jResponseJson

the response object

same as param(), but convert the value to an integer value. If it isn't a numerical value, return null.

intParam(string $parName, mixed $parDefaultValue = null, boolean $useDefaultIfEmpty = false) : integer
inherited

Arguments

$parName

string

the name of the request parameter

$parDefaultValue

mixed

the default returned value if the parameter doesn't exists

$useDefaultIfEmpty

boolean

true: says to return the default value the value is ""

Response

integer

the request parameter value

404 error page

notfound() 

Gets the value of a request parameter. If not defined, gets its default value.

param(string $parName, mixed $parDefaultValue = null, boolean $useDefaultIfEmpty = false) : mixed
inherited

Arguments

$parName

string

the name of the request parameter

$parDefaultValue

mixed

the default returned value if the parameter doesn't exists

$useDefaultIfEmpty

boolean

true: says to return the default value if the parameter value is ""

Response

mixed

the request parameter value

params

params() : array
inherited

Response

array

all request parameters

Properties

parameters for plugins of the coordinator

pluginParams : array
inherited

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

Type(s)

array

sensitive parameters

sensitiveParameters : 
inherited

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

Type(s)

the request object

request : \jRequest
inherited
var

Type(s)

\jRequest