TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
lang
Classes
Domain
Model
lang/Classes/Domain/Model/Language.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Lang\Domain\Model;
3
4
/*
5
* This file is part of the TYPO3 CMS project.
6
*
7
* It is free software; you can redistribute it and/or modify it under
8
* the terms of the GNU General Public License, either version 2
9
* of the License, or any later version.
10
*
11
* For the full copyright and license information, please read the
12
* LICENSE.txt file that was distributed with this source code.
13
*
14
* The TYPO3 project - inspiring people to share!
15
*/
16
20
class
Language
extends
\TYPO3\CMS\Extbase\DomainObject\AbstractEntity
21
{
25
protected
$locale
=
''
;
26
30
protected
$label
=
''
;
31
35
protected
$selected
=
false
;
36
40
protected
$lastUpdate
;
41
50
public
function
__construct
(
$locale
=
''
,
$label
=
''
,
$selected
=
false
,
$lastUpdate
= null)
51
{
52
$this->locale =
$locale
;
53
$this->label =
$label
;
54
$this->selected =
$selected
;
55
$this->lastUpdate =
$lastUpdate
;
56
}
57
61
public
function
getLastUpdate
()
62
{
63
return
$this->lastUpdate
;
64
}
65
69
public
function
setLastUpdate
(
$lastUpdate
)
70
{
71
$this->lastUpdate =
$lastUpdate
;
72
}
73
80
public
function
setLabel
($language)
81
{
82
$this->label = $language;
83
}
84
90
public
function
getLabel
()
91
{
92
return
$this->label
;
93
}
94
101
public
function
setLocale
(
$locale
)
102
{
103
$this->locale =
$locale
;
104
}
105
111
public
function
getLocale
()
112
{
113
return
$this->locale
;
114
}
115
122
public
function
setSelected
(
$selected
)
123
{
124
$this->selected = (bool)
$selected
;
125
}
126
132
public
function
getSelected
()
133
{
134
return
$this->selected
;
135
}
136
142
public
function
toArray
()
143
{
144
return
array(
145
'locale'
=> $this->
getLocale
(),
146
'label'
=> $this->
getLabel
(),
147
'selected'
=> $this->
getSelected
(),
148
'lastUpdate'
=> $this->
getLastUpdate
(),
149
);
150
}
151
}
Generated on Wed Nov 11 2015 01:51:59 for TYPO3 by
1.8.3