Claro_FrontController Class Reference
Detailed Description
Rudimentary Front Controller for Claroline applications This class is a Singleton !
Bind a requested controller to the Claro_Controller instance Serve a requested controller
Definition at line 105 of file controller.lib.php.
Constructor & Destructor Documentation
| __construct |
( |
$ |
initConfig = null |
) |
[protected] |
Constructor
- Parameters:
-
| initConfig | array initial controllers array |
Definition at line 129 of file controller.lib.php.
Member Function Documentation
Bind the given Claro_Controller to the given requestable key
- Parameters:
-
| string | $request requestable key |
| Claro_Controller | $controller |
| bool | $overwrite set to true to overwrite an existing binding, default false |
- Exceptions:
-
- Returns:
- void
Definition at line 145 of file controller.lib.php.
| static getInstance |
( |
$ |
initConfig = null |
) |
[static] |
| serve |
( |
$ |
request = null |
) |
|
Exceute the controller bound to the requested key
- Parameters:
-
| string | $request requestable key, if null, trys to serve the default Controller if any |
- Exceptions:
-
- Returns:
- string controller output
Definition at line 202 of file controller.lib.php.
Set the given requestable key as default
- Parameters:
-
| string | $request requestable key |
- Exceptions:
-
- Returns:
- void
Definition at line 163 of file controller.lib.php.
Field Documentation
$_instance = false [static, protected] |
$defaultController = false [protected] |
$registry = array() [protected] |
The documentation for this class was generated from the following file: