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