TYPO3 CMS  TYPO3_8-7
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 
134  public function setUserOrGroup($user)
135  {
136  $this->userOrGroup = $user;
137  }
138 
144  public function getUserOrGroup()
145  {
146  return $this->userOrGroup;
147  }
148 
154  public function setNumber($number)
155  {
156  $this->number = (int)$number;
157  }
158 
164  public function getNumber()
165  {
166  return $this->number;
167  }
168 
174  public function setWorkspaceUid($workspace)
175  {
176  $this->workspaceUid = $workspace;
177  }
178 
184  public function getWorkspaceUid()
185  {
186  return $this->workspaceUid;
187  }
188 
194  public function setTimeFrame($timeFrame)
195  {
196  $this->timeFrame = $timeFrame;
197  }
198 
204  public function getTimeFrame()
205  {
206  return (int)$this->timeFrame;
207  }
208 
214  public function setAction($action)
215  {
216  $this->action = $action;
217  }
218 
224  public function getAction()
225  {
226  return (int)$this->action;
227  }
228 
234  public function setGroupByPage($groupByPage)
235  {
236  $this->groupByPage = $groupByPage;
237  }
238 
244  public function getGroupByPage()
245  {
246  return (bool)$this->groupByPage;
247  }
248 
254  public function setStartTimestamp($timestamp)
255  {
256  $this->startTimestamp = (int)$timestamp;
257  }
258 
264  public function getStartTimestamp()
265  {
266  return $this->startTimestamp;
267  }
268 
274  public function setEndTimestamp($timestamp)
275  {
276  $this->endTimestamp = (int)$timestamp;
277  }
278 
284  public function getEndTimestamp()
285  {
286  return $this->endTimestamp;
287  }
288 
294  public function setIsInPageContext($pageContext)
295  {
296  $this->isInPageContext = $pageContext;
297  }
298 
304  public function getIsInPageContext()
305  {
306  return (bool)$this->isInPageContext;
307  }
308 
314  public function setPageId($id)
315  {
316  $this->pageId = (int)$id;
317  }
318 
324  public function getPageId()
325  {
326  return $this->pageId;
327  }
328 
334  public function setDepth($depth)
335  {
336  $this->depth = $depth;
337  }
338 
344  public function getDepth()
345  {
346  return (int)$this->depth;
347  }
348 
354  public function setManualDateStart(\DateTime $manualDateStart = null)
355  {
356  $this->manualDateStart = $manualDateStart;
357  }
358 
364  public function getManualDateStart()
365  {
366  return $this->manualDateStart;
367  }
368 
374  public function setManualDateStop(\DateTime $manualDateStop = null)
375  {
376  $this->manualDateStop = $manualDateStop;
377  }
378 
384  public function getManualDateStop()
385  {
386  return $this->manualDateStop;
387  }
388 }
setManualDateStart(\DateTime $manualDateStart=null)
Definition: Constraint.php:354
setManualDateStop(\DateTime $manualDateStop=null)
Definition: Constraint.php:374