‪TYPO3CMS  9.5
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 
22 {
28  protected ‪$userOrGroup = '0';
29 
35  protected ‪$number = 20;
36 
43 
49  protected ‪$timeFrame = 0;
50 
56  protected ‪$action = 0;
57 
63  protected ‪$groupByPage = false;
64 
70  protected ‪$startTimestamp = 0;
71 
77  protected ‪$endTimestamp = 0;
78 
83  protected ‪$manualDateStart;
84 
89  protected ‪$manualDateStop;
90 
96  protected ‪$pageId = 0;
97 
103  protected ‪$depth = 0;
104 
110  public function ‪setUserOrGroup($user)
111  {
112  $this->userOrGroup = $user;
113  }
114 
120  public function ‪getUserOrGroup()
121  {
122  return ‪$this->userOrGroup;
123  }
124 
130  public function ‪setNumber(‪$number)
131  {
132  $this->number = (int)‪$number;
133  }
134 
140  public function ‪getNumber()
141  {
142  return ‪$this->number;
143  }
144 
150  public function ‪setWorkspaceUid($workspace)
151  {
152  $this->workspaceUid = $workspace;
153  }
154 
160  public function ‪getWorkspaceUid()
161  {
162  return ‪$this->workspaceUid;
163  }
164 
170  public function ‪setTimeFrame(‪$timeFrame)
171  {
172  $this->timeFrame = ‪$timeFrame;
173  }
174 
180  public function ‪getTimeFrame()
181  {
182  return (int)‪$this->timeFrame;
183  }
184 
190  public function ‪setAction(‪$action)
191  {
192  $this->action = ‪$action;
193  }
194 
200  public function ‪getAction()
201  {
202  return (int)‪$this->action;
203  }
204 
210  public function ‪setGroupByPage(‪$groupByPage)
211  {
212  $this->groupByPage = ‪$groupByPage;
213  }
214 
220  public function ‪getGroupByPage()
221  {
222  return (bool)‪$this->groupByPage;
223  }
224 
230  public function ‪setStartTimestamp($timestamp)
231  {
232  $this->startTimestamp = (int)$timestamp;
233  }
234 
240  public function ‪getStartTimestamp()
241  {
243  }
244 
250  public function ‪setEndTimestamp($timestamp)
251  {
252  $this->endTimestamp = (int)$timestamp;
253  }
254 
260  public function ‪getEndTimestamp()
261  {
262  return ‪$this->endTimestamp;
263  }
264 
270  public function ‪setPageId($id)
271  {
272  $this->pageId = (int)$id;
273  }
274 
280  public function ‪getPageId()
281  {
282  return ‪$this->pageId;
283  }
284 
290  public function ‪setDepth(‪$depth)
291  {
292  $this->depth = ‪$depth;
293  }
294 
300  public function ‪getDepth()
301  {
302  return (int)‪$this->depth;
303  }
304 
310  public function ‪setManualDateStart(\DateTime ‪$manualDateStart = null)
311  {
312  $this->manualDateStart = ‪$manualDateStart;
313  }
314 
320  public function ‪getManualDateStart()
321  {
323  }
324 
330  public function ‪setManualDateStop(\DateTime ‪$manualDateStop = null)
331  {
332  $this->manualDateStop = ‪$manualDateStop;
333  }
334 
340  public function ‪getManualDateStop()
341  {
343  }
344 }
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$action
‪int $action
Definition: Constraint.php:51
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$groupByPage
‪bool $groupByPage
Definition: Constraint.php:57
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getAction
‪int getAction()
Definition: Constraint.php:188
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$userOrGroup
‪string $userOrGroup
Definition: Constraint.php:27
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setNumber
‪setNumber($number)
Definition: Constraint.php:118
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getWorkspaceUid
‪string getWorkspaceUid()
Definition: Constraint.php:148
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setEndTimestamp
‪setEndTimestamp($timestamp)
Definition: Constraint.php:238
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setWorkspaceUid
‪setWorkspaceUid($workspace)
Definition: Constraint.php:138
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setStartTimestamp
‪setStartTimestamp($timestamp)
Definition: Constraint.php:218
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$timeFrame
‪int $timeFrame
Definition: Constraint.php:45
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$number
‪int $number
Definition: Constraint.php:33
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setManualDateStart
‪setManualDateStart(\DateTime $manualDateStart=null)
Definition: Constraint.php:298
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getDepth
‪int getDepth()
Definition: Constraint.php:288
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getGroupByPage
‪bool getGroupByPage()
Definition: Constraint.php:208
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$endTimestamp
‪int $endTimestamp
Definition: Constraint.php:69
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getEndTimestamp
‪int getEndTimestamp()
Definition: Constraint.php:248
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getTimeFrame
‪int getTimeFrame()
Definition: Constraint.php:168
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getManualDateStart
‪DateTime getManualDateStart()
Definition: Constraint.php:308
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setManualDateStop
‪setManualDateStop(\DateTime $manualDateStop=null)
Definition: Constraint.php:318
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setUserOrGroup
‪setUserOrGroup($user)
Definition: Constraint.php:98
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$manualDateStop
‪DateTime $manualDateStop
Definition: Constraint.php:79
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getStartTimestamp
‪int getStartTimestamp()
Definition: Constraint.php:228
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setPageId
‪setPageId($id)
Definition: Constraint.php:258
‪TYPO3\CMS\Belog\Domain\Model\Workspace\UID_ANY_WORKSPACE
‪const UID_ANY_WORKSPACE
Definition: Workspace.php:33
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$workspaceUid
‪int $workspaceUid
Definition: Constraint.php:39
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getUserOrGroup
‪string getUserOrGroup()
Definition: Constraint.php:108
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$depth
‪int $depth
Definition: Constraint.php:91
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setGroupByPage
‪setGroupByPage($groupByPage)
Definition: Constraint.php:198
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$pageId
‪int $pageId
Definition: Constraint.php:85
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$manualDateStart
‪DateTime $manualDateStart
Definition: Constraint.php:74
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setDepth
‪setDepth($depth)
Definition: Constraint.php:278
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setTimeFrame
‪setTimeFrame($timeFrame)
Definition: Constraint.php:158
‪TYPO3\CMS\Belog\Domain\Model\Constraint
Definition: Constraint.php:22
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setAction
‪setAction($action)
Definition: Constraint.php:178
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getManualDateStop
‪DateTime getManualDateStop()
Definition: Constraint.php:328
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$startTimestamp
‪int $startTimestamp
Definition: Constraint.php:63
‪TYPO3\CMS\Belog\Domain\Model
Definition: Constraint.php:2
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getNumber
‪int getNumber()
Definition: Constraint.php:128
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getPageId
‪int getPageId()
Definition: Constraint.php:268