‪TYPO3CMS  10.4
Constraint.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
23 {
29  protected ‪$userOrGroup = '0';
30 
36  protected ‪$number = 20;
37 
44 
50  protected ‪$timeFrame = 0;
51 
57  protected ‪$action = 0;
58 
64  protected ‪$groupByPage = false;
65 
71  protected ‪$startTimestamp = 0;
72 
78  protected ‪$endTimestamp = 0;
79 
84  protected ‪$manualDateStart;
85 
90  protected ‪$manualDateStop;
91 
97  protected ‪$pageId = 0;
98 
104  protected ‪$depth = 0;
105 
111  public function ‪setUserOrGroup($user)
112  {
113  $this->userOrGroup = $user;
114  }
115 
121  public function ‪getUserOrGroup()
122  {
123  return ‪$this->userOrGroup;
124  }
125 
131  public function ‪setNumber(‪$number)
132  {
133  $this->number = (int)‪$number;
134  }
135 
141  public function ‪getNumber()
142  {
143  return ‪$this->number;
144  }
145 
151  public function ‪setWorkspaceUid($workspace)
152  {
153  $this->workspaceUid = $workspace;
154  }
155 
161  public function ‪getWorkspaceUid()
162  {
163  return ‪$this->workspaceUid;
164  }
165 
171  public function ‪setTimeFrame(‪$timeFrame)
172  {
173  $this->timeFrame = ‪$timeFrame;
174  }
175 
181  public function ‪getTimeFrame()
182  {
183  return (int)‪$this->timeFrame;
184  }
185 
191  public function ‪setAction(‪$action)
192  {
193  $this->action = ‪$action;
194  }
195 
201  public function ‪getAction()
202  {
203  return (int)‪$this->action;
204  }
205 
211  public function ‪setGroupByPage(‪$groupByPage)
212  {
213  $this->groupByPage = ‪$groupByPage;
214  }
215 
221  public function ‪getGroupByPage()
222  {
223  return (bool)‪$this->groupByPage;
224  }
225 
231  public function ‪setStartTimestamp($timestamp)
232  {
233  $this->startTimestamp = (int)$timestamp;
234  }
235 
241  public function ‪getStartTimestamp()
242  {
244  }
245 
251  public function ‪setEndTimestamp($timestamp)
252  {
253  $this->endTimestamp = (int)$timestamp;
254  }
255 
261  public function ‪getEndTimestamp()
262  {
263  return ‪$this->endTimestamp;
264  }
265 
271  public function ‪setPageId($id)
272  {
273  $this->pageId = (int)$id;
274  }
275 
281  public function ‪getPageId()
282  {
283  return ‪$this->pageId;
284  }
285 
291  public function ‪setDepth(‪$depth)
292  {
293  $this->depth = ‪$depth;
294  }
295 
301  public function ‪getDepth()
302  {
303  return (int)‪$this->depth;
304  }
305 
311  public function ‪setManualDateStart(\DateTime ‪$manualDateStart = null)
312  {
313  $this->manualDateStart = ‪$manualDateStart;
314  }
315 
321  public function ‪getManualDateStart()
322  {
324  }
325 
331  public function ‪setManualDateStop(\DateTime ‪$manualDateStop = null)
332  {
333  $this->manualDateStop = ‪$manualDateStop;
334  }
335 
341  public function ‪getManualDateStop()
342  {
344  }
345 }
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$action
‪int $action
Definition: Constraint.php:52
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$groupByPage
‪bool $groupByPage
Definition: Constraint.php:58
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getManualDateStart
‪DateTime null getManualDateStart()
Definition: Constraint.php:309
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getAction
‪int getAction()
Definition: Constraint.php:189
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$userOrGroup
‪string $userOrGroup
Definition: Constraint.php:28
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setNumber
‪setNumber($number)
Definition: Constraint.php:119
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getWorkspaceUid
‪string getWorkspaceUid()
Definition: Constraint.php:149
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setEndTimestamp
‪setEndTimestamp($timestamp)
Definition: Constraint.php:239
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setWorkspaceUid
‪setWorkspaceUid($workspace)
Definition: Constraint.php:139
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setStartTimestamp
‪setStartTimestamp($timestamp)
Definition: Constraint.php:219
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$timeFrame
‪int $timeFrame
Definition: Constraint.php:46
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$number
‪int $number
Definition: Constraint.php:34
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$manualDateStart
‪DateTime null $manualDateStart
Definition: Constraint.php:75
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setManualDateStart
‪setManualDateStart(\DateTime $manualDateStart=null)
Definition: Constraint.php:299
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getDepth
‪int getDepth()
Definition: Constraint.php:289
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getGroupByPage
‪bool getGroupByPage()
Definition: Constraint.php:209
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$endTimestamp
‪int $endTimestamp
Definition: Constraint.php:70
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getEndTimestamp
‪int getEndTimestamp()
Definition: Constraint.php:249
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getTimeFrame
‪int getTimeFrame()
Definition: Constraint.php:169
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setManualDateStop
‪setManualDateStop(\DateTime $manualDateStop=null)
Definition: Constraint.php:319
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setUserOrGroup
‪setUserOrGroup($user)
Definition: Constraint.php:99
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getStartTimestamp
‪int getStartTimestamp()
Definition: Constraint.php:229
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setPageId
‪setPageId($id)
Definition: Constraint.php:259
‪TYPO3\CMS\Belog\Domain\Model\Workspace\UID_ANY_WORKSPACE
‪const UID_ANY_WORKSPACE
Definition: Workspace.php:36
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getManualDateStop
‪DateTime null getManualDateStop()
Definition: Constraint.php:329
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$workspaceUid
‪int $workspaceUid
Definition: Constraint.php:40
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getUserOrGroup
‪string getUserOrGroup()
Definition: Constraint.php:109
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$depth
‪int $depth
Definition: Constraint.php:92
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setGroupByPage
‪setGroupByPage($groupByPage)
Definition: Constraint.php:199
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$pageId
‪int $pageId
Definition: Constraint.php:86
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setDepth
‪setDepth($depth)
Definition: Constraint.php:279
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setTimeFrame
‪setTimeFrame($timeFrame)
Definition: Constraint.php:159
‪TYPO3\CMS\Belog\Domain\Model\Constraint
Definition: Constraint.php:23
‪TYPO3\CMS\Belog\Domain\Model\Constraint\setAction
‪setAction($action)
Definition: Constraint.php:179
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$startTimestamp
‪int $startTimestamp
Definition: Constraint.php:64
‪TYPO3\CMS\Belog\Domain\Model
Definition: Constraint.php:16
‪TYPO3\CMS\Belog\Domain\Model\Constraint\$manualDateStop
‪DateTime null $manualDateStop
Definition: Constraint.php:80
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getNumber
‪int getNumber()
Definition: Constraint.php:129
‪TYPO3\CMS\Belog\Domain\Model\Constraint\getPageId
‪int getPageId()
Definition: Constraint.php:269