abstract class Controller in Module Object Oriented Programming API 6.2
Same name and namespace in other branches
- 6 component/moopapi.component.inc \Controller
- 7.2 component/moopapi.component.inc \Controller
- 7 component/moopapi.component.inc \Controller
Hierarchy
- class \Component
- class \Controller
Expanded class hierarchy of Controller
5 string references to 'Controller'
- Application::getController in component/
moopapi.component.inc - ApplicationAdapter::getController in component/
decorator/ moopapi.adapter.inc - ApplicationAdapter::getController in component/
decorator/ adapter/ moopapi.adapter.inc - ApplicationLogger::getController in component/
decorator/ moopapi.logger.inc - ApplicationLogger::getController in component/
decorator/ logger/ moopapi.logger.inc
File
- component/
moopapi.component.inc, line 222
View source
abstract class Controller extends Component {
protected $type = 'Controller';
protected $model;
public function __construct($decorators_applied = array(), &$relations = array()) {
parent::__construct($decorators_applied, $relations);
$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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Component:: |
protected | property | ||
Component:: |
protected | property | ||
Component:: |
protected | property | ||
Component:: |
protected | property | ||
Component:: |
protected | property | ||
Component:: |
constant | |||
Component:: |
constant | |||
Component:: |
constant | |||
Controller:: |
protected | property | ||
Controller:: |
protected | property |
Overrides Component:: |
|
Controller:: |
protected | function | ||
Controller:: |
public | function |
Overrides Component:: |