abstract class ApplicationLogger in Module Object Oriented Programming API 7
Same name and namespace in other branches
- 6.2 component/decorator/moopapi.logger.inc \ApplicationLogger
- 6.2 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
- 6 component/decorator/moopapi.logger.inc \ApplicationLogger
- 6 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
- 7.2 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
Hierarchy
- class \Component
- class \Decorator
- class \Logger
- class \ApplicationLogger implements IApplication
- class \Logger
- class \Decorator
Expanded class hierarchy of ApplicationLogger
File
- component/
decorator/ logger/ moopapi.logger.inc, line 103
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];
}
}