[TASK] Cleanup "beuser" sysext
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Classes / Domain / Model / Demand.php
1 <?php
2 namespace TYPO3\CMS\Beuser\Domain\Model;
3
4 /***************************************************************
5 * Copyright notice
6 *
7 * (c) 2012 Felix Kopp <felix-source@phorax.com>
8 * All rights reserved
9 *
10 * This script is part of the TYPO3 project. The TYPO3 project is
11 * free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * The GNU General Public License can be found at
17 * http://www.gnu.org/copyleft/gpl.html.
18 * A copy is found in the textfile GPL.txt and important notices to the license
19 * from the author is found in LICENSE.txt distributed with these scripts.
20 *
21 * This script is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * This copyright notice MUST APPEAR in all copies of the script!
27 ***************************************************************/
28
29 /**
30 * Demand filter for listings
31 *
32 * @author Felix Kopp <felix-source@phorax.com>
33 */
34 class Demand extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
35
36 /**
37 * @var integer
38 */
39 const ALL = 0;
40 /**
41 * @var integer
42 */
43 const USERTYPE_ADMINONLY = 1;
44 /**
45 * @var integer
46 */
47 const USERTYPE_USERONLY = 2;
48 /**
49 * @var integer
50 */
51 const STATUS_ACTIVE = 1;
52 /**
53 * @var integer
54 */
55 const STATUS_INACTIVE = 2;
56 /**
57 * @var integer
58 */
59 const LOGIN_SOME = 1;
60 /**
61 * @var integer
62 */
63 const LOGIN_NONE = 2;
64 /**
65 * @var string
66 */
67 protected $userName = '';
68
69 /**
70 * @var integer
71 */
72 protected $userType = self::ALL;
73
74 /**
75 * @var integer
76 */
77 protected $status = self::ALL;
78
79 /**
80 * @var integer
81 */
82 protected $logins = 0;
83
84 /**
85 * @var \TYPO3\CMS\Beuser\Domain\Model\BackendUserGroup
86 */
87 protected $backendUserGroup;
88
89 /**
90 * @param string $userName
91 * @return void
92 */
93 public function setUserName($userName) {
94 $this->userName = $userName;
95 }
96
97 /**
98 * @return string
99 */
100 public function getUserName() {
101 return $this->userName;
102 }
103
104 /**
105 * @param integer $userType
106 * @return void
107 */
108 public function setUserType($userType) {
109 $this->userType = $userType;
110 }
111
112 /**
113 * @return integer
114 */
115 public function getUserType() {
116 return $this->userType;
117 }
118
119 /**
120 * @param integer $status
121 * @return void
122 */
123 public function setStatus($status) {
124 $this->status = $status;
125 }
126
127 /**
128 * @return integer
129 */
130 public function getStatus() {
131 return $this->status;
132 }
133
134 /**
135 * @param integer $logins
136 * @return void
137 */
138 public function setLogins($logins) {
139 $this->logins = $logins;
140 }
141
142 /**
143 * @return integer
144 */
145 public function getLogins() {
146 return $this->logins;
147 }
148
149 /**
150 * @param BackendUserGroup $backendUserGroup
151 */
152 public function setBackendUserGroup($backendUserGroup) {
153 $this->backendUserGroup = $backendUserGroup;
154 }
155
156 /**
157 * @return BackendUserGroup
158 */
159 public function getBackendUserGroup() {
160 return $this->backendUserGroup;
161 }
162
163 }
164
165 ?>