‪TYPO3CMS  9.5
ModuleData.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 {
26  protected ‪$demand;
27 
31  protected ‪$compareUserList = [];
32 
36  public function ‪injectDemand(\‪TYPO3\CMS\Beuser\Domain\Model\‪Demand ‪$demand)
37  {
38  $this->demand = ‪$demand;
39  }
40 
44  public function ‪getDemand()
45  {
46  return ‪$this->demand;
47  }
48 
52  public function ‪setDemand(\‪TYPO3\CMS\Beuser\Domain\Model\‪Demand ‪$demand)
53  {
54  $this->demand = ‪$demand;
55  }
56 
62  public function ‪getCompareUserList()
63  {
64  return array_keys($this->compareUserList);
65  }
66 
73  public function ‪attachUidCompareUser($uid)
74  {
75  $this->compareUserList[$uid] = true;
76  }
77 
83  public function ‪detachUidCompareUser($uid)
84  {
85  unset($this->compareUserList[$uid]);
86  }
87 }
‪TYPO3\CMS\Beuser\Domain\Model
Definition: BackendUser.php:2
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\getDemand
‪TYPO3 CMS Beuser Domain Model Demand getDemand()
Definition: ModuleData.php:42
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\attachUidCompareUser
‪attachUidCompareUser($uid)
Definition: ModuleData.php:71
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\setDemand
‪setDemand(\TYPO3\CMS\Beuser\Domain\Model\Demand $demand)
Definition: ModuleData.php:50
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\$demand
‪TYPO3 CMS Beuser Domain Model Demand $demand
Definition: ModuleData.php:25
‪TYPO3
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\getCompareUserList
‪array getCompareUserList()
Definition: ModuleData.php:60
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\injectDemand
‪injectDemand(\TYPO3\CMS\Beuser\Domain\Model\Demand $demand)
Definition: ModuleData.php:34
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\detachUidCompareUser
‪detachUidCompareUser($uid)
Definition: ModuleData.php:81
‪TYPO3\CMS\Beuser\Domain\Model\Demand
Definition: Demand.php:22
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData\$compareUserList
‪array $compareUserList
Definition: ModuleData.php:29
‪TYPO3\CMS\Beuser\Domain\Model\ModuleData
Definition: ModuleData.php:22