‪TYPO3CMS  10.4
ModuleData.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 {
27  protected ‪$demand;
28 
32  protected ‪$compareUserList = [];
33 
37  public function ‪injectDemand(‪Demand ‪$demand)
38  {
39  $this->demand = ‪$demand;
40  }
41 
45  public function ‪getDemand()
46  {
47  return ‪$this->demand;
48  }
49 
53  public function ‪setDemand(‪Demand ‪$demand)
54  {
55  $this->demand = ‪$demand;
56  }
57 
63  public function ‪getCompareUserList()
64  {
65  return array_keys($this->compareUserList);
66  }
67 
74  public function ‪attachUidCompareUser($uid)
75  {
76  $this->compareUserList[$uid] = true;
77  }
78 
84  public function ‪detachUidCompareUser($uid)
85  {
86  unset($this->compareUserList[$uid]);
87  }
88 }
‪TYPO3\CMS\Beuser\Domain\Model
Definition: BackendUser.php:16
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\getDemand
‪TYPO3 CMS Beuser Domain Model Demand getDemand()
Definition: ModuleData.php:43
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\attachUidCompareUser
‪attachUidCompareUser($uid)
Definition: ModuleData.php:72
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\$demand
‪TYPO3 CMS Beuser Domain Model Demand $demand
Definition: ModuleData.php:26
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\injectDemand
‪injectDemand(Demand $demand)
Definition: ModuleData.php:35
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\getCompareUserList
‪array getCompareUserList()
Definition: ModuleData.php:61
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\detachUidCompareUser
‪detachUidCompareUser($uid)
Definition: ModuleData.php:82
‪TYPO3\CMS\Beuser\Domain\Model\Demand
Definition: Demand.php:25
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\$compareUserList
‪array $compareUserList
Definition: ModuleData.php:30
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\setDemand
‪setDemand(Demand $demand)
Definition: ModuleData.php:51
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData
Definition: ModuleData.php:23