jCoordinator
__construct
(string $configFile, [boolean $enableErrorHandler = true])
-
string
$configFile: name of the ini file to configure the framework
-
boolean
$enableErrorHandler: enable the error handler of jelix. keep it to true, unless you have something to debug and really have to use the default handler or an other handler
Store an error/warning/notice message.
boolean
addErrorMsg
(string $type, integer $code, string $message, string $file, integer $line, $trace)
-
string
$type: error type : 'error', 'warning', 'notice'
-
integer
$code: error code
-
string
$message: error message
-
string
$file: the file name where the error appear
-
integer
$line: the line number where the error appear
-
$trace
Store a log message. Responses object should take care of the logMessages properties to display them.
void
addLogMsg
(string $message, [ $type = 'default'])
-
string
$message: error message
-
$type
return the real path of a module
string
getModulePath
(string $module, [boolean $includingExternal = false])
-
string
$module: a module name
-
boolean
$includingExternal: true if we want to know if the module is also an external module, e.g. in an other entry point
gets a given plugin if registered
jICoordPlugin
getPlugin
(
string $pluginName, [
boolean $required =
true])
-
string
$pluginName: the name of the plugin
-
boolean
$required: says if the plugin is required or not. If true, will generate an exception if the plugin is not registered.
Handle an error event. Called by error handler and exception handler.
Responses object should take care of the errorMessages property to display errors.
void
handleError
(string $toDo, string $type, integer $code, string $message, string $file, integer $line, array $trace)
-
string
$toDo: a string which contains keyword indicating what to do with the error
-
string
$type: error type : 'error', 'warning', 'notice'
-
integer
$code: error code
-
string
$message: error message
-
string
$file: the file name where the error appear
-
integer
$line: the line number where the error appear
-
array
$trace: the stack trace
instancy a response object corresponding to the default response type
of the current resquest
mixed
initDefaultResponseOfRequest
([boolean $originalResponse = false])
-
boolean
$originalResponse: TRUE to get the original, non overloaded response
Says if the given module $name is enabled
boolean
isModuleEnabled
(string $moduleName, [boolean $includingExternal = false])
-
string
$moduleName
-
boolean
$includingExternal: true if we want to know if the module is also an external module, e.g. in an other entry point
Says if the given plugin $name is enabled
boolean
isPluginEnabled
(string $pluginName)
main method : launch the execution of the action.
This method should be called in a entry point.
Redefined in descendants as: