TYPO3 CMS  TYPO3_8-7
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 
23 {
27  protected $title = '';
28 
32  protected $lockToDomain = '';
33 
37  protected $description = '';
38 
42  protected $subgroup;
43 
49  public function __construct($title = '')
50  {
51  $this->setTitle($title);
52  $this->subgroup = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
53  }
54 
61  public function setTitle($title)
62  {
63  $this->title = $title;
64  }
65 
72  public function getTitle()
73  {
74  return $this->title;
75  }
76 
83  public function setLockToDomain($lockToDomain)
84  {
85  $this->lockToDomain = $lockToDomain;
86  }
87 
94  public function getLockToDomain()
95  {
96  return $this->lockToDomain;
97  }
98 
105  public function setDescription($description)
106  {
107  $this->description = $description;
108  }
109 
116  public function getDescription()
117  {
118  return $this->description;
119  }
120 
128  public function setSubgroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $subgroup)
129  {
130  $this->subgroup = $subgroup;
131  }
132 
139  public function addSubgroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $subgroup)
140  {
141  $this->subgroup->attach($subgroup);
142  }
143 
150  public function removeSubgroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $subgroup)
151  {
152  $this->subgroup->detach($subgroup);
153  }
154 
162  public function getSubgroup()
163  {
164  return $this->subgroup;
165  }
166 }
setSubgroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $subgroup)
addSubgroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $subgroup)
removeSubgroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $subgroup)