Class jController

Description

class base for controllers

A controller is used to implement one or many actions, one method for each action.

  • abstract:

Located in /core/jController.class.php (line 31)


	
			
Direct descendents
Class Description
jControllerCmdLine a base class for controllers used in command line application
jControllerDaoCrudDfk a base class for crud controllers, for DAO which have a primary key based on
jControllerDaoCrud a base class for crud controllers
Variable Summary
Method Summary
jController __construct (jRequest $request)
boolean boolParam (string $parName, [mixed $parDefaultValue = null], [boolean $useDefaultIfEmpty = false])
float floatParam (string $parName, [mixed $parDefaultValue = null], [boolean $useDefaultIfEmpty = false])
jResponse getResponse ([string $name = ''], [boolean $useOriginal = false])
integer intParam (string $parName, [mixed $parDefaultValue = null], [boolean $useDefaultIfEmpty = false])
mixed param (string $parName, [mixed $parDefaultValue = null], [boolean $useDefaultIfEmpty = false])
array params ()
void processZone (string $name, [array $params = array ()])
Variables
array $pluginParams = array() (line 42)

parameters for plugins of the coordinator

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

  • access: public
jRequest $request (line 48)

the request object

  • access: protected
Methods
Constructor __construct (line 54)
jController __construct (jRequest $request)
  • jRequest $request: the current request object

Redefined in descendants as:
boolParam (line 119)

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

  • return: the request parameter value
  • access: protected
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 ""
floatParam (line 103)

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

  • return: the request parameter value
  • access: protected
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 ""
getResponse (line 140)

get a response object.

  • return: the response object
  • access: protected
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
intParam (line 87)

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

  • return: the request parameter value
  • access: protected
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 ""
param (line 75)

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

  • return: the request parameter value
  • access: protected
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:
params (line 132)
  • return: all request parameters
  • access: protected
array params ()
processZone (line 64)

jZone::get alias

  • deprecated:
  • access: protected
void processZone (string $name, [array $params = array ()])
  • string $name: zone selector
  • array $params: associative array, parameters

Documentation generated on Thu, 22 Mar 2012 22:14:16 +0100 by phpDocumentor 1.4.3