TYPO3 CMS  TYPO3_7-6
Constraint.php
Go to the documentation of this file.
1 <?php
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 
21 {
27  protected $userOrGroup = '0';
28 
34  protected $number = 20;
35 
42 
48  protected $timeFrame = 0;
49 
55  protected $action = 0;
56 
62  protected $groupByPage = false;
63 
69  protected $startTimestamp = 0;
70 
76  protected $endTimestamp = 0;
77 
82  protected $manualDateStart = null;
83 
88  protected $manualDateStop = null;
89 
95  protected $isInPageContext = false;
96 
102  protected $pageId = 0;
103 
109  protected $depth = 0;
110 
114  public function __construct()
115  {
116  }
117 
125  public function __wakeup()
126  {
127  }
128 
135  public function setUserOrGroup($user)
136  {
137  $this->userOrGroup = $user;
138  }
139 
145  public function getUserOrGroup()
146  {
147  return $this->userOrGroup;
148  }
149 
156  public function setNumber($number)
157  {
158  $this->number = (int)$number;
159  }
160 
166  public function getNumber()
167  {
168  return $this->number;
169  }
170 
177  public function setWorkspaceUid($workspace)
178  {
179  $this->workspaceUid = $workspace;
180  }
181 
187  public function getWorkspaceUid()
188  {
189  return $this->workspaceUid;
190  }
191 
198  public function setTimeFrame($timeFrame)
199  {
200  $this->timeFrame = $timeFrame;
201  }
202 
208  public function getTimeFrame()
209  {
210  return (int)$this->timeFrame;
211  }
212 
219  public function setAction($action)
220  {
221  $this->action = $action;
222  }
223 
229  public function getAction()
230  {
231  return (int)$this->action;
232  }
233 
240  public function setGroupByPage($groupByPage)
241  {
242  $this->groupByPage = $groupByPage;
243  }
244 
250  public function getGroupByPage()
251  {
252  return (bool)$this->groupByPage;
253  }
254 
261  public function setStartTimestamp($timestamp)
262  {
263  $this->startTimestamp = (int)$timestamp;
264  }
265 
271  public function getStartTimestamp()
272  {
273  return $this->startTimestamp;
274  }
275 
282  public function setEndTimestamp($timestamp)
283  {
284  $this->endTimestamp = (int)$timestamp;
285  }
286 
292  public function getEndTimestamp()
293  {
294  return $this->endTimestamp;
295  }
296 
303  public function setIsInPageContext($pageContext)
304  {
305  $this->isInPageContext = $pageContext;
306  }
307 
313  public function getIsInPageContext()
314  {
315  return (bool)$this->isInPageContext;
316  }
317 
324  public function setPageId($id)
325  {
326  $this->pageId = (int)$id;
327  }
328 
334  public function getPageId()
335  {
336  return $this->pageId;
337  }
338 
345  public function setDepth($depth)
346  {
347  $this->depth = $depth;
348  }
349 
355  public function getDepth()
356  {
357  return (int)$this->depth;
358  }
359 
366  public function setManualDateStart(\DateTime $manualDateStart = null)
367  {
368  $this->manualDateStart = $manualDateStart;
369  }
370 
376  public function getManualDateStart()
377  {
378  return $this->manualDateStart;
379  }
380 
387  public function setManualDateStop(\DateTime $manualDateStop = null)
388  {
389  $this->manualDateStop = $manualDateStop;
390  }
391 
397  public function getManualDateStop()
398  {
399  return $this->manualDateStop;
400  }
401 }
setManualDateStart(\DateTime $manualDateStart=null)
Definition: Constraint.php:366
setManualDateStop(\DateTime $manualDateStop=null)
Definition: Constraint.php:387