TYPO3 CMS  TYPO3_6-2
WizardController.php
Go to the documentation of this file.
1 <?php
3 
23 
31  public function dispatch() {
32  switch (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('action')) {
33  case 'save':
34  $this->saveAction();
35  break;
36  case 'load':
37  $this->loadAction();
38  break;
39  default:
40  $this->indexAction();
41  }
42  }
43 
51  protected function indexAction() {
53  $view = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Form\\View\\Wizard\\WizardView', $this->getRepository());
54  $view->render();
55  }
56 
64  protected function saveAction() {
66  $view = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Form\\View\\Wizard\\SaveWizardView', $this->getRepository());
67  $view->render();
68  }
69 
77  protected function loadAction() {
79  $view = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Form\\View\\Wizard\\LoadWizardView', $this->getRepository());
80  $view->render();
81  }
82 
88  protected function getRepository() {
89  return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Form\\Domain\\Repository\\ContentRepository');
90  }
91 
92 }