Ejemplo n.º 1
0
 /**
  * Index action
  *
  * @param \TYPO3\CMS\Lang\Domain\Model\LanguageSelectionForm $languageSelectionForm
  * @param mixed $extensions Extensions to show in form
  * @return void
  * @ignorevalidation $languageSelectionForm
  * @ignorevalidation $extensions
  */
 public function indexAction(\TYPO3\CMS\Lang\Domain\Model\LanguageSelectionForm $languageSelectionForm = NULL, $extensions = NULL)
 {
     if ($languageSelectionForm === NULL) {
         $languageSelectionForm = $this->objectManager->get('TYPO3\\CMS\\Lang\\Domain\\Model\\LanguageSelectionForm');
         $languageSelectionForm->setLanguages($this->languageRepository->findAll());
         $languageSelectionForm->setSelectedLanguages($this->languageRepository->findSelected());
     }
     if (empty($extensions)) {
         $extensions = $this->extensionRepository->findAll();
     }
     $this->view->assign('languageSelectionForm', $languageSelectionForm);
     $this->view->assign('extensions', $extensions);
 }
Ejemplo n.º 2
0
 /**
  * List languages
  *
  * @return void
  */
 public function listLanguagesAction()
 {
     $this->prepareDocHeaderMenu();
     $this->prepareDocHeaderButtons();
     $languages = $this->languageRepository->findAll();
     $this->view->assign('languages', $languages);
 }
Ejemplo n.º 3
0
 /**
  * Index action
  *
  * @return void
  */
 public function indexAction()
 {
     $languages = $this->languageRepository->findAll();
     $selectedLanguages = $this->languageRepository->findSelected();
     $extensions = $this->extensionRepository->findAll();
     if ($this->request->hasArgument('updateResult')) {
         $extensions = $this->mergeUpdateResult($extensions, $this->request->getArgument('updateResult'));
     }
     $this->view->assign('languages', $languages);
     $this->view->assign('selectedLanguages', $selectedLanguages);
     $this->view->assign('extensions', $extensions);
 }
Ejemplo n.º 4
0
 /**
  * List languages
  *
  * @return void
  */
 public function listLanguagesAction()
 {
     $languages = $this->languageRepository->findAll();
     $this->view->assign('languages', $languages);
 }