‪TYPO3CMS  9.5
FrontendUserGroup.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 {
25  protected ‪$title = '';
26 
30  protected ‪$lockToDomain = '';
31 
35  protected ‪$description = '';
36 
40  protected ‪$subgroup;
41 
47  public function ‪__construct(‪$title = '')
48  {
49  $this->‪setTitle(‪$title);
50  $this->subgroup = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
51  }
52 
58  public function ‪setTitle(‪$title)
59  {
60  $this->title = ‪$title;
61  }
62 
68  public function ‪getTitle()
69  {
70  return ‪$this->title;
71  }
72 
78  public function ‪setLockToDomain(‪$lockToDomain)
79  {
80  $this->lockToDomain = ‪$lockToDomain;
81  }
82 
88  public function ‪getLockToDomain()
89  {
91  }
92 
98  public function ‪setDescription(‪$description)
99  {
100  $this->description = ‪$description;
101  }
102 
108  public function ‪getDescription()
109  {
110  return ‪$this->description;
111  }
112 
119  public function ‪setSubgroup(\‪TYPO3\CMS\‪Extbase\Persistence\ObjectStorage ‪$subgroup)
120  {
121  $this->subgroup = ‪$subgroup;
122  }
123 
129  public function ‪addSubgroup(\‪TYPO3\CMS\‪Extbase\Domain\Model\FrontendUserGroup ‪$subgroup)
130  {
131  $this->subgroup->attach(‪$subgroup);
132  }
133 
139  public function ‪removeSubgroup(\‪TYPO3\CMS\‪Extbase\Domain\Model\FrontendUserGroup ‪$subgroup)
140  {
141  $this->subgroup->detach(‪$subgroup);
142  }
143 
150  public function ‪getSubgroup()
151  {
152  return ‪$this->subgroup;
153  }
154 }
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\getDescription
‪string getDescription()
Definition: FrontendUserGroup.php:104
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\$subgroup
‪TYPO3 CMS Extbase Persistence ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup > $subgroup
Definition: FrontendUserGroup.php:36
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\setTitle
‪setTitle($title)
Definition: FrontendUserGroup.php:54
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\getTitle
‪string getTitle()
Definition: FrontendUserGroup.php:64
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\$description
‪string $description
Definition: FrontendUserGroup.php:32
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\getLockToDomain
‪string getLockToDomain()
Definition: FrontendUserGroup.php:84
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\removeSubgroup
‪removeSubgroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $subgroup)
Definition: FrontendUserGroup.php:135
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\addSubgroup
‪addSubgroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $subgroup)
Definition: FrontendUserGroup.php:125
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\$title
‪string $title
Definition: FrontendUserGroup.php:24
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\getSubgroup
‪TYPO3 CMS Extbase Persistence ObjectStorage getSubgroup()
Definition: FrontendUserGroup.php:146
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup
Definition: FrontendUserGroup.php:21
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\setDescription
‪setDescription($description)
Definition: FrontendUserGroup.php:94
‪TYPO3\CMS\Extbase\Domain\Model
Definition: AbstractFileCollection.php:2
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\$lockToDomain
‪string $lockToDomain
Definition: FrontendUserGroup.php:28
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\__construct
‪__construct($title='')
Definition: FrontendUserGroup.php:43
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\setSubgroup
‪setSubgroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $subgroup)
Definition: FrontendUserGroup.php:115
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup\setLockToDomain
‪setLockToDomain($lockToDomain)
Definition: FrontendUserGroup.php:74