jController
__construct
(
jRequest $request)
-
jRequest
$request: the current request object
Redefined in descendants as:
same as param(), but convert the value to a boolean value. If it isn't a numerical value, return null.
boolean
boolParam
(string $parName, [mixed $parDefaultValue = null], [boolean $useDefaultIfEmpty = false])
-
string
$parName: the name of the request parameter
-
mixed
$parDefaultValue: the default returned value if the parameter doesn't exists
-
boolean
$useDefaultIfEmpty: true: says to return the default value the value is ""
same as param(), but convert the value to a float value. If it isn't a numerical value, return null.
float
floatParam
(string $parName, [mixed $parDefaultValue = null], [boolean $useDefaultIfEmpty = false])
-
string
$parName: the name of the request parameter
-
mixed
$parDefaultValue: the default returned value if the parameter doesn't exists
-
boolean
$useDefaultIfEmpty: true: says to return the default value the value is ""
get a response object.
jResponse
getResponse
(
string $name, [
boolean $useOriginal =
false])
-
string
$name: the name of the response type (ex: "html")
-
boolean
$useOriginal: true:don't use the response object redefined by the application
same as param(), but convert the value to an integer value. If it isn't a numerical value, return null.
integer
intParam
(string $parName, [mixed $parDefaultValue = null], [boolean $useDefaultIfEmpty = false])
-
string
$parName: the name of the request parameter
-
mixed
$parDefaultValue: the default returned value if the parameter doesn't exists
-
boolean
$useDefaultIfEmpty: true: says to return the default value the value is ""
Gets the value of a request parameter. If not defined, gets its default value.
mixed
param
(string $parName, [mixed $parDefaultValue = null], [boolean $useDefaultIfEmpty = false])
-
string
$parName: the name of the request parameter
-
mixed
$parDefaultValue: the default returned value if the parameter doesn't exists
-
boolean
$useDefaultIfEmpty: true: says to return the default value if the parameter value is ""
Redefined in descendants as:
jZone::get alias
void
processZone
(string $name, [array $params = array ()])
-
string
$name: zone selector
-
array
$params: associative array, parameters