Пример #1
0
 public function handleInput()
 {
     if ($this->navigationView->inRegistration()) {
         $registration = new RegistrationController($this->navigationView, $this->registrationView, $this->registrationModel);
         if (!$registration->DoRegister()) {
             $this->view = $registration->GetView();
         }
     } else {
         $login = new LoginController($this->navigationView, $this->loginModel, $this->loginView);
         $login->DoLogin();
         $this->view = $login->GetView();
     }
 }