TYPO3 CMS  TYPO3_6-2
FrontendUserGroup.php
Go to the documentation of this file.
1 <?php
3 
22 
26  protected $title = '';
27 
31  protected $lockToDomain = '';
32 
36  protected $description = '';
37 
41  protected $subgroup;
42 
48  public function __construct($title = '') {
49  $this->setTitle($title);
50  $this->subgroup = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
51  }
52 
60  public function setTitle($title) {
61  $this->title = $title;
62  }
63 
70  public function getTitle() {
71  return $this->title;
72  }
73 
81  public function setLockToDomain($lockToDomain) {
82  $this->lockToDomain = $lockToDomain;
83  }
84 
91  public function getLockToDomain() {
92  return $this->lockToDomain;
93  }
94 
102  public function setDescription($description) {
103  $this->description = $description;
104  }
105 
112  public function getDescription() {
113  return $this->description;
114  }
115 
124  public function setSubgroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $subgroup) {
125  $this->subgroup = $subgroup;
126  }
127 
135  public function addSubgroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $subgroup) {
136  $this->subgroup->attach($subgroup);
137  }
138 
146  public function removeSubgroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $subgroup) {
147  $this->subgroup->detach($subgroup);
148  }
149 
157  public function getSubgroup() {
158  return $this->subgroup;
159  }
160 }
setSubgroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $subgroup)
addSubgroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $subgroup)
removeSubgroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $subgroup)