abstract class ApplicationLogger in Module Object Oriented Programming API 6
Same name in this branch
- 6 component/decorator/moopapi.logger.inc \ApplicationLogger
- 6 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
Same name and namespace in other branches
- 6.2 component/decorator/moopapi.logger.inc \ApplicationLogger
- 6.2 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
- 7.2 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
- 7 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
Hierarchy
- class \ApplicationLogger extends \Logger implements IApplication
Expanded class hierarchy of ApplicationLogger
File
- component/
decorator/ logger/ moopapi.logger.inc, line 106
View source
abstract class ApplicationLogger extends Logger implements IApplication {
const ADMIN_PATH = 'admin';
protected $type = 'Application';
protected $ctrls = array();
protected $controllers = array();
public function __construct($decorators_applied = array(), &$relations = array(), $app) {
parent::__construct($decorators_applied, $relations, $app);
$this
->getControllers();
}
public function getControllers() {
$controllers = array();
foreach ($this->ctrls as $ctrl_name) {
$controllers[$ctrl_name] = $this
->getController($ctrl_name);
}
return $controllers;
}
protected function getController($ctrl_name) {
$this->controllers[$ctrl_name] = ComponentFactory::get($this->app_name, 'Controller', $ctrl_name, $this->decorators_applied, $this->relations);
return $this->controllers[$ctrl_name];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ApplicationLogger:: |
protected | property | ||
ApplicationLogger:: |
protected | property | ||
ApplicationLogger:: |
protected | property | ||
ApplicationLogger:: |
constant | |||
ApplicationLogger:: |
protected | function | ||
ApplicationLogger:: |
public | function |
Overrides IApplication:: |
|
ApplicationLogger:: |
public | function |