TYPO3 CMS  TYPO3_6-2
LanguageSelectionForm.php
Go to the documentation of this file.
1 <?php
22 
26  protected $languages = array();
27 
31  protected $selectedLanguages = array();
32 
39  public function setLanguages(array $languages) {
40  $this->languages = $languages;
41  }
42 
48  public function getLanguages() {
49  return $this->languages;
50  }
51 
58  public function setSelectedLanguages(array $selectedLanguages) {
59  $this->selectedLanguages = array_values(array_filter($selectedLanguages));
60  }
61 
67  public function getSelectedLanguages() {
69  }
70 
76  public function getSelectedLanguagesLocaleList() {
77  if (!empty($this->selectedLanguages) && is_array($this->selectedLanguages)) {
78  $locales = array();
79  foreach ($this->selectedLanguages as $language) {
80  $locales[] = $language->getLocale();
81  }
82 
83  return implode(',', $locales);
84  }
85  return '';
86  }
87 
88 }
$locales
Definition: be_users.php:6