TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
beuser
Classes
Domain
Model
beuser/Classes/Domain/Model/BackendUser.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Beuser\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
BackendUser
extends
\TYPO3\CMS\Extbase\Domain\Model\BackendUser
21
{
28
protected
$allowedLanguages
=
''
;
29
33
protected
$dbMountPoints
=
''
;
34
38
protected
$description
;
39
43
protected
$fileMountPoints
=
''
;
44
48
protected
$backendUserGroups
;
49
54
public
function
setAllowedLanguages
(
$allowedLanguages
)
55
{
56
$this->allowedLanguages =
$allowedLanguages
;
57
}
58
62
public
function
getAllowedLanguages
()
63
{
64
return
$this->allowedLanguages
;
65
}
66
71
public
function
setDbMountPoints
(
$dbMountPoints
)
72
{
73
$this->dbMountPoints =
$dbMountPoints
;
74
}
75
79
public
function
getDbMountPoints
()
80
{
81
return
$this->dbMountPoints
;
82
}
83
87
public
function
getDescription
()
88
{
89
return
$this->description
;
90
}
91
95
public
function
setDescription
(
$description
)
96
{
97
$this->description =
$description
;
98
}
99
104
public
function
setFileMountPoints
(
$fileMountPoints
)
105
{
106
$this->fileMountPoints =
$fileMountPoints
;
107
}
108
112
public
function
getFileMountPoints
()
113
{
114
return
$this->fileMountPoints
;
115
}
116
122
public
function
isActive
()
123
{
124
if
($this->
getIsDisabled
()) {
125
return
false
;
126
}
127
$now = new \DateTime(
'now'
);
128
return
!$this->
getStartDateAndTime
() && !$this->
getEndDateAndTime
() || $this->
getStartDateAndTime
() <= $now && (!$this->
getEndDateAndTime
() || $this->
getEndDateAndTime
() > $now);
129
}
130
134
public
function
setBackendUserGroups
(
$backendUserGroups
)
135
{
136
$this->backendUserGroups =
$backendUserGroups
;
137
}
138
142
public
function
getBackendUserGroups
()
143
{
144
return
$this->backendUserGroups
;
145
}
146
152
public
function
isCurrentlyLoggedIn
()
153
{
154
return
$this->
getUid
() === (int)$this->
getBackendUser
()->user[
'uid'
];
155
}
156
162
public
function
getBackendUser
()
163
{
164
return
$GLOBALS
[
'BE_USER'
];
165
}
166
}
Generated on Wed Nov 11 2015 01:51:50 for TYPO3 by
1.8.3