public function doMasterControl() { $ac = new \controller\AdminController($this->adminModel, $this->nv); $ac->doAdminControl(); $this->container = $ac->getContainerView(); $this->aside = $ac->getAsideView(); // TODO: Implement controller for the normal users }
public function handleInput() { if ($this->navigationView->inStore()) { $store = new \controller\StoreController($this->productDAL->getProducts()); //Handle input $store->doStore(); //Generate output $this->view = $store->getView(); } else { $model = new \model\AdminFacade($this->productDAL); $this->view = new \view\AdminView($model, $this->navigationView); $adc = new \controller\AdminController($model, $this->view, $this->navigationView); $adc->addProduct(); } $this->mysqli->close(); }
/** * Does the control for admin-actions and returns the html-response of the view of admincontroller * * @return string - HTML-response of the view */ private function doAdmin() { $adminController = new \controller\AdminController($this->navView); $adminController->doControl(); return $adminController->getView()->response(); }