You are here

abstract class ControllerLogger in Module Object Oriented Programming API 6

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

Hierarchy

Expanded class hierarchy of ControllerLogger

File

component/decorator/logger/moopapi.logger.inc, line 132

View source
abstract class ControllerLogger extends Logger {
  protected $type = 'Controller';
  protected $model;
  public function __construct($decorators_applied = array(), &$relations = array(), $app) {
    parent::__construct($decorators_applied, $relations, $app);
    $this
      ->getModel();
  }
  protected function getModel() {
    $this->model = ComponentFactory::get($this->app_name, 'Model', $this->controller_type, $this->decorators_applied, $this->relations);
    return $this->model;
  }

}

Members