You are here

abstract class Controller in Module Object Oriented Programming API 6

Same name and namespace in other branches
  1. 6.2 component/moopapi.component.inc \Controller
  2. 7.2 component/moopapi.component.inc \Controller
  3. 7 component/moopapi.component.inc \Controller

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
Component::$app_name protected property
Component::$decorators_applied protected property
Component::$id protected property
Component::$relations protected property
Component::$rltns protected property
Component::ID_APPLICATION constant
Component::TYPE_CONTROLLER constant
Component::TYPE_MODEL constant
Controller::$model protected property
Controller::$type protected property Overrides Component::$type
Controller::getModel protected function
Controller::__construct public function Overrides Component::__construct