You are here

abstract class ApplicationLogger in Module Object Oriented Programming API 6

Same name in this branch
  1. 6 component/decorator/moopapi.logger.inc \ApplicationLogger
  2. 6 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
Same name and namespace in other branches
  1. 6.2 component/decorator/moopapi.logger.inc \ApplicationLogger
  2. 6.2 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
  3. 7.2 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
  4. 7 component/decorator/logger/moopapi.logger.inc \ApplicationLogger

Hierarchy

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