‪TYPO3CMS  9.5
BackendUserGroup.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 
18 
23 {
26  const ‪DIRECTORY_COPY = 8;
28 
33  protected ‪$title = '';
34 
38  protected ‪$description = '';
39 
43  protected ‪$subGroups;
44 
48  protected ‪$modules = '';
49 
53  protected ‪$tablesListening = '';
54 
58  protected ‪$tablesModify = '';
59 
63  protected ‪$pageTypes = '';
64 
68  protected ‪$allowedExcludeFields = '';
69 
73  protected ‪$explicitlyAllowAndDeny = '';
74 
78  protected ‪$allowedLanguages = '';
79 
83  protected ‪$workspacePermission = false;
84 
88  protected ‪$databaseMounts = '';
89 
94 
98  protected ‪$lockToDomain = '';
99 
103  protected ‪$tsConfig = '';
104 
108  public function ‪__construct()
109  {
110  $this->subGroups = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
111  }
112 
118  public function ‪setTitle(‪$title)
119  {
120  $this->title = ‪$title;
121  }
122 
128  public function ‪getTitle()
129  {
130  return ‪$this->title;
131  }
132 
138  public function ‪setDescription(‪$description)
139  {
140  $this->description = ‪$description;
141  }
142 
148  public function ‪getDescription()
149  {
150  return ‪$this->description;
151  }
152 
158  public function ‪setSubGroups(\‪TYPO3\CMS\‪Extbase\Persistence\ObjectStorage ‪$subGroups)
159  {
160  $this->subGroups = ‪$subGroups;
161  }
162 
168  public function ‪addSubGroup(\‪TYPO3\CMS\‪Extbase\Domain\Model\BackendUserGroup $beGroup)
169  {
170  $this->subGroups->attach($beGroup);
171  }
172 
178  public function ‪removeSubGroup(\‪TYPO3\CMS\‪Extbase\Domain\Model\‪BackendUserGroup $groupToDelete)
179  {
180  $this->subGroups->detach($groupToDelete);
181  }
182 
186  public function ‪removeAllSubGroups()
187  {
189  $this->subGroups->removeAll(‪$subGroups);
190  }
191 
197  public function ‪getSubGroups()
198  {
199  return ‪$this->subGroups;
200  }
201 
207  public function ‪setModules(‪$modules)
208  {
209  $this->modules = ‪$modules;
210  }
211 
217  public function ‪getModules()
218  {
219  return ‪$this->modules;
220  }
221 
228  {
229  $this->tablesListening = ‪$tablesListening;
230  }
231 
237  public function ‪getTablesListening()
238  {
240  }
241 
247  public function ‪setTablesModify(‪$tablesModify)
248  {
249  $this->tablesModify = ‪$tablesModify;
250  }
251 
257  public function ‪getTablesModify()
258  {
259  return ‪$this->tablesModify;
260  }
261 
267  public function ‪setPageTypes(‪$pageTypes)
268  {
269  $this->pageTypes = ‪$pageTypes;
270  }
271 
277  public function ‪getPageTypes()
278  {
279  return ‪$this->pageTypes;
280  }
281 
288  {
289  $this->allowedExcludeFields = ‪$allowedExcludeFields;
290  }
291 
297  public function ‪getAllowedExcludeFields()
298  {
300  }
301 
308  {
309  $this->explicitlyAllowAndDeny = ‪$explicitlyAllowAndDeny;
310  }
311 
317  public function ‪getExplicitlyAllowAndDeny()
318  {
320  }
321 
328  {
329  $this->allowedLanguages = ‪$allowedLanguages;
330  }
331 
337  public function ‪getAllowedLanguages()
338  {
340  }
341 
348  {
349  $this->workspacePermission = ‪$workspacePermission;
350  }
351 
357  public function ‪getWorkspacePermission()
358  {
360  }
361 
368  {
369  $this->databaseMounts = ‪$databaseMounts;
370  }
371 
377  public function ‪getDatabaseMounts()
378  {
380  }
381 
388  {
389  $this->fileOperationPermissions = ‪$fileOperationPermissions;
390  }
391 
397  public function ‪getFileOperationPermissions()
398  {
400  }
401 
408  public function ‪isFileOperationAllowed()
409  {
410  return $this->‪isPermissionSet(self::FILE_OPPERATIONS);
411  }
412 
418  public function ‪setFileOperationAllowed($value)
419  {
420  $this->‪setPermission(self::FILE_OPPERATIONS, $value);
421  }
422 
428  public function ‪isDirectoryOperationAllowed()
429  {
430  return $this->‪isPermissionSet(self::DIRECTORY_OPPERATIONS);
431  }
432 
438  public function ‪setDirectoryOperationAllowed($value)
439  {
440  $this->‪setPermission(self::DIRECTORY_OPPERATIONS, $value);
441  }
442 
448  public function ‪isDirectoryCopyAllowed()
449  {
450  return $this->‪isPermissionSet(self::DIRECTORY_COPY);
451  }
452 
458  public function ‪setDirectoryCopyAllowed($value)
459  {
460  $this->‪setPermission(self::DIRECTORY_COPY, $value);
461  }
462 
469  {
470  return $this->‪isPermissionSet(self::DIRECTORY_REMOVE_RECURSIVELY);
471  }
472 
478  public function ‪setDirectoryRemoveRecursivelyAllowed($value)
479  {
480  $this->‪setPermission(self::DIRECTORY_REMOVE_RECURSIVELY, $value);
481  }
482 
488  public function ‪setLockToDomain(‪$lockToDomain)
489  {
490  $this->lockToDomain = ‪$lockToDomain;
491  }
492 
498  public function ‪getLockToDomain()
499  {
500  return ‪$this->lockToDomain;
501  }
502 
508  public function ‪setTsConfig(‪$tsConfig)
509  {
510  $this->tsConfig = ‪$tsConfig;
511  }
512 
518  public function ‪getTsConfig()
519  {
520  return ‪$this->tsConfig;
521  }
522 
529  protected function ‪isPermissionSet($permission)
530  {
531  return ($this->fileOperationPermissions & $permission) == $permission;
532  }
533 
540  protected function ‪setPermission($permission, $value)
541  {
542  if ($value) {
543  $this->fileOperationPermissions |= $permission;
544  } else {
545  $this->fileOperationPermissions &= ~$permission;
546  }
547  }
548 }
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getModules
‪string getModules()
Definition: BackendUserGroup.php:202
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\isDirectoryOperationAllowed
‪bool isDirectoryOperationAllowed()
Definition: BackendUserGroup.php:413
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\isDirectoryRemoveRecursivelyAllowed
‪bool isDirectoryRemoveRecursivelyAllowed()
Definition: BackendUserGroup.php:453
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$pageTypes
‪string $pageTypes
Definition: BackendUserGroup.php:56
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setDirectoryRemoveRecursivelyAllowed
‪setDirectoryRemoveRecursivelyAllowed($value)
Definition: BackendUserGroup.php:463
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setExplicitlyAllowAndDeny
‪setExplicitlyAllowAndDeny($explicitlyAllowAndDeny)
Definition: BackendUserGroup.php:292
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setFileOperationPermissions
‪setFileOperationPermissions($fileOperationPermissions)
Definition: BackendUserGroup.php:372
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setTsConfig
‪setTsConfig($tsConfig)
Definition: BackendUserGroup.php:493
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getPageTypes
‪string getPageTypes()
Definition: BackendUserGroup.php:262
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getAllowedExcludeFields
‪string getAllowedExcludeFields()
Definition: BackendUserGroup.php:282
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setDirectoryCopyAllowed
‪setDirectoryCopyAllowed($value)
Definition: BackendUserGroup.php:443
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setTitle
‪setTitle($title)
Definition: BackendUserGroup.php:103
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$explicitlyAllowAndDeny
‪string $explicitlyAllowAndDeny
Definition: BackendUserGroup.php:64
‪TYPO3
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$tsConfig
‪string $tsConfig
Definition: BackendUserGroup.php:88
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\removeSubGroup
‪removeSubGroup(\TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup $groupToDelete)
Definition: BackendUserGroup.php:163
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setWorkspacePermissions
‪setWorkspacePermissions($workspacePermission)
Definition: BackendUserGroup.php:332
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getTablesListening
‪string getTablesListening()
Definition: BackendUserGroup.php:222
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$description
‪string $description
Definition: BackendUserGroup.php:36
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getTablesModify
‪string getTablesModify()
Definition: BackendUserGroup.php:242
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\DIRECTORY_OPPERATIONS
‪const DIRECTORY_OPPERATIONS
Definition: BackendUserGroup.php:25
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$title
‪string $title
Definition: BackendUserGroup.php:32
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setTablesModify
‪setTablesModify($tablesModify)
Definition: BackendUserGroup.php:232
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setModules
‪setModules($modules)
Definition: BackendUserGroup.php:192
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setAllowedLanguages
‪setAllowedLanguages($allowedLanguages)
Definition: BackendUserGroup.php:312
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$databaseMounts
‪string $databaseMounts
Definition: BackendUserGroup.php:76
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$subGroups
‪TYPO3 CMS Extbase Persistence ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup > $subGroups
Definition: BackendUserGroup.php:40
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup
Definition: BackendUserGroup.php:23
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getExplicitlyAllowAndDeny
‪string getExplicitlyAllowAndDeny()
Definition: BackendUserGroup.php:302
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$fileOperationPermissions
‪int $fileOperationPermissions
Definition: BackendUserGroup.php:80
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\__construct
‪__construct()
Definition: BackendUserGroup.php:93
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\isFileOperationAllowed
‪bool isFileOperationAllowed()
Definition: BackendUserGroup.php:393
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$modules
‪string $modules
Definition: BackendUserGroup.php:44
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setLockToDomain
‪setLockToDomain($lockToDomain)
Definition: BackendUserGroup.php:473
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getDescription
‪string getDescription()
Definition: BackendUserGroup.php:133
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setPageTypes
‪setPageTypes($pageTypes)
Definition: BackendUserGroup.php:252
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$allowedExcludeFields
‪string $allowedExcludeFields
Definition: BackendUserGroup.php:60
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\DIRECTORY_REMOVE_RECURSIVELY
‪const DIRECTORY_REMOVE_RECURSIVELY
Definition: BackendUserGroup.php:27
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setTablesListening
‪setTablesListening($tablesListening)
Definition: BackendUserGroup.php:212
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$workspacePermission
‪bool $workspacePermission
Definition: BackendUserGroup.php:72
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getAllowedLanguages
‪string getAllowedLanguages()
Definition: BackendUserGroup.php:322
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\isDirectoryCopyAllowed
‪bool isDirectoryCopyAllowed()
Definition: BackendUserGroup.php:433
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\removeAllSubGroups
‪removeAllSubGroups()
Definition: BackendUserGroup.php:171
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getTitle
‪string getTitle()
Definition: BackendUserGroup.php:113
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\isPermissionSet
‪bool isPermissionSet($permission)
Definition: BackendUserGroup.php:514
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$tablesListening
‪string $tablesListening
Definition: BackendUserGroup.php:48
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setSubGroups
‪setSubGroups(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $subGroups)
Definition: BackendUserGroup.php:143
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$lockToDomain
‪string $lockToDomain
Definition: BackendUserGroup.php:84
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getWorkspacePermission
‪bool getWorkspacePermission()
Definition: BackendUserGroup.php:342
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$tablesModify
‪string $tablesModify
Definition: BackendUserGroup.php:52
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setDirectoryOperationAllowed
‪setDirectoryOperationAllowed($value)
Definition: BackendUserGroup.php:423
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\addSubGroup
‪addSubGroup(\TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup $beGroup)
Definition: BackendUserGroup.php:153
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getSubGroups
‪TYPO3 CMS Extbase Persistence ObjectStorage getSubGroups()
Definition: BackendUserGroup.php:182
‪TYPO3\CMS\Extbase\Domain\Model
Definition: AbstractFileCollection.php:2
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setDescription
‪setDescription($description)
Definition: BackendUserGroup.php:123
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setDatabaseMounts
‪setDatabaseMounts($databaseMounts)
Definition: BackendUserGroup.php:352
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getDatabaseMounts
‪string getDatabaseMounts()
Definition: BackendUserGroup.php:362
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getFileOperationPermissions
‪int getFileOperationPermissions()
Definition: BackendUserGroup.php:382
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\FILE_OPPERATIONS
‪const FILE_OPPERATIONS
Definition: BackendUserGroup.php:24
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getTsConfig
‪string getTsConfig()
Definition: BackendUserGroup.php:503
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$allowedLanguages
‪string $allowedLanguages
Definition: BackendUserGroup.php:68
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setFileOperationAllowed
‪setFileOperationAllowed($value)
Definition: BackendUserGroup.php:403
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setPermission
‪setPermission($permission, $value)
Definition: BackendUserGroup.php:525
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setAllowedExcludeFields
‪setAllowedExcludeFields($allowedExcludeFields)
Definition: BackendUserGroup.php:272
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getLockToDomain
‪string getLockToDomain()
Definition: BackendUserGroup.php:483
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\DIRECTORY_COPY
‪const DIRECTORY_COPY
Definition: BackendUserGroup.php:26