[TASK] Rebuild language selection list in lang module
[Packages/TYPO3.CMS.git] / typo3 / sysext / lang / Classes / Domain / Model / LanguageSelectionForm.php
1 <?php
2 namespace TYPO3\CMS\Lang\Domain\Model;
3 /***************************************************************
4 * Copyright notice
5 *
6 * (c) 2012 Sebastian Fischer <typo3@evoweb.de>
7 * All rights reserved
8 *
9 * This script is part of the TYPO3 project. The TYPO3 project is
10 * free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * The GNU General Public License can be found at
16 * http://www.gnu.org/copyleft/gpl.html.
17 *
18 * This script is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * This copyright notice MUST APPEAR in all copies of the script!
24 ***************************************************************/
25
26 /**
27 * Model to contain all information from the form changing the selection of available languages
28 *
29 * @author Sebastian Fischer <typo3@evoweb.de>
30 * @package TYPO3
31 * @subpackage lang
32 */
33 class LanguageSelectionForm extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
34
35 /**
36 * @var array
37 */
38 protected $languages = array();
39
40 /**
41 * @var array
42 */
43 protected $selectedLanguages = array();
44
45 /**
46 * Setter for the languages
47 *
48 * @param array $locale Selected languages
49 * @return void
50 */
51 public function setLanguages(array $languages) {
52 $this->languages = $languages;
53 }
54
55 /**
56 * Getter for the languages
57 *
58 * @return array
59 */
60 public function getLanguages() {
61 return $this->languages;
62 }
63
64 /**
65 * Setter for the selected languages
66 *
67 * @param array $locale Selected languages
68 * @return void
69 */
70 public function setSelectedLanguages(array $selectedLanguages) {
71 $this->selectedLanguages = $selectedLanguages;
72 }
73
74 /**
75 * Getter for the selected languages
76 *
77 * @return array
78 */
79 public function getSelectedLanguages() {
80 return $this->selectedLanguages;
81 }
82
83 }
84 ?>