‪TYPO3CMS  10.4
BackendUserGroup.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
21 
26 {
29  const ‪DIRECTORY_COPY = 8;
31 
36  protected ‪$title = '';
37 
41  protected ‪$description = '';
42 
46  protected ‪$subGroups;
47 
51  protected ‪$modules = '';
52 
56  protected ‪$tablesListening = '';
57 
61  protected ‪$tablesModify = '';
62 
66  protected ‪$pageTypes = '';
67 
71  protected ‪$allowedExcludeFields = '';
72 
76  protected ‪$explicitlyAllowAndDeny = '';
77 
81  protected ‪$allowedLanguages = '';
82 
86  protected ‪$workspacePermission = false;
87 
91  protected ‪$databaseMounts = '';
92 
97 
101  protected ‪$lockToDomain = '';
102 
106  protected ‪$tsConfig = '';
107 
111  public function ‪__construct()
112  {
113  $this->subGroups = new ‪ObjectStorage();
114  }
115 
121  public function ‪setTitle(‪$title)
122  {
123  $this->title = ‪$title;
124  }
125 
131  public function ‪getTitle()
132  {
133  return ‪$this->title;
134  }
135 
141  public function ‪setDescription(‪$description)
142  {
143  $this->description = ‪$description;
144  }
145 
151  public function ‪getDescription()
152  {
153  return ‪$this->description;
154  }
155 
161  public function ‪setSubGroups(ObjectStorage ‪$subGroups)
162  {
163  $this->subGroups = ‪$subGroups;
164  }
165 
171  public function ‪addSubGroup(\‪TYPO3\CMS\‪Extbase\Domain\Model\BackendUserGroup $beGroup)
172  {
173  $this->subGroups->attach($beGroup);
174  }
175 
181  public function ‪removeSubGroup(\‪TYPO3\CMS\‪Extbase\Domain\Model\‪BackendUserGroup $groupToDelete)
182  {
183  $this->subGroups->detach($groupToDelete);
184  }
185 
189  public function ‪removeAllSubGroups()
190  {
192  $this->subGroups->removeAll(‪$subGroups);
193  }
194 
200  public function ‪getSubGroups()
201  {
202  return ‪$this->subGroups;
203  }
204 
210  public function ‪setModules(‪$modules)
211  {
212  $this->modules = ‪$modules;
213  }
214 
220  public function ‪getModules()
221  {
222  return ‪$this->modules;
223  }
224 
231  {
232  $this->tablesListening = ‪$tablesListening;
233  }
234 
240  public function ‪getTablesListening()
241  {
243  }
244 
250  public function ‪setTablesModify(‪$tablesModify)
251  {
252  $this->tablesModify = ‪$tablesModify;
253  }
254 
260  public function ‪getTablesModify()
261  {
262  return ‪$this->tablesModify;
263  }
264 
270  public function ‪setPageTypes(‪$pageTypes)
271  {
272  $this->pageTypes = ‪$pageTypes;
273  }
274 
280  public function ‪getPageTypes()
281  {
282  return ‪$this->pageTypes;
283  }
284 
291  {
292  $this->allowedExcludeFields = ‪$allowedExcludeFields;
293  }
294 
300  public function ‪getAllowedExcludeFields()
301  {
303  }
304 
311  {
312  $this->explicitlyAllowAndDeny = ‪$explicitlyAllowAndDeny;
313  }
314 
320  public function ‪getExplicitlyAllowAndDeny()
321  {
323  }
324 
331  {
332  $this->allowedLanguages = ‪$allowedLanguages;
333  }
334 
340  public function ‪getAllowedLanguages()
341  {
343  }
344 
351  {
352  $this->workspacePermission = ‪$workspacePermission;
353  }
354 
360  public function ‪getWorkspacePermission()
361  {
363  }
364 
371  {
372  $this->databaseMounts = ‪$databaseMounts;
373  }
374 
380  public function ‪getDatabaseMounts()
381  {
383  }
384 
391  {
392  $this->fileOperationPermissions = ‪$fileOperationPermissions;
393  }
394 
400  public function ‪getFileOperationPermissions()
401  {
403  }
404 
411  public function ‪isFileOperationAllowed()
412  {
413  return $this->‪isPermissionSet(self::FILE_OPPERATIONS);
414  }
415 
421  public function ‪setFileOperationAllowed($value)
422  {
423  $this->‪setPermission(self::FILE_OPPERATIONS, $value);
424  }
425 
431  public function ‪isDirectoryOperationAllowed()
432  {
433  return $this->‪isPermissionSet(self::DIRECTORY_OPPERATIONS);
434  }
435 
441  public function ‪setDirectoryOperationAllowed($value)
442  {
443  $this->‪setPermission(self::DIRECTORY_OPPERATIONS, $value);
444  }
445 
451  public function ‪isDirectoryCopyAllowed()
452  {
453  return $this->‪isPermissionSet(self::DIRECTORY_COPY);
454  }
455 
461  public function ‪setDirectoryCopyAllowed($value)
462  {
463  $this->‪setPermission(self::DIRECTORY_COPY, $value);
464  }
465 
472  {
473  return $this->‪isPermissionSet(self::DIRECTORY_REMOVE_RECURSIVELY);
474  }
475 
481  public function ‪setDirectoryRemoveRecursivelyAllowed($value)
482  {
483  $this->‪setPermission(self::DIRECTORY_REMOVE_RECURSIVELY, $value);
484  }
485 
491  public function ‪setLockToDomain(‪$lockToDomain)
492  {
493  $this->lockToDomain = ‪$lockToDomain;
494  }
495 
501  public function ‪getLockToDomain()
502  {
503  return ‪$this->lockToDomain;
504  }
505 
511  public function ‪setTsConfig(‪$tsConfig)
512  {
513  $this->tsConfig = ‪$tsConfig;
514  }
515 
521  public function ‪getTsConfig()
522  {
523  return ‪$this->tsConfig;
524  }
525 
532  protected function ‪isPermissionSet($permission)
533  {
534  return ($this->fileOperationPermissions & $permission) == $permission;
535  }
536 
543  protected function ‪setPermission($permission, $value)
544  {
545  if ($value) {
546  $this->fileOperationPermissions |= $permission;
547  } else {
548  $this->fileOperationPermissions &= ~$permission;
549  }
550  }
551 }
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getModules
‪string getModules()
Definition: BackendUserGroup.php:205
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\isDirectoryOperationAllowed
‪bool isDirectoryOperationAllowed()
Definition: BackendUserGroup.php:416
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\isDirectoryRemoveRecursivelyAllowed
‪bool isDirectoryRemoveRecursivelyAllowed()
Definition: BackendUserGroup.php:456
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$pageTypes
‪string $pageTypes
Definition: BackendUserGroup.php:59
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setDirectoryRemoveRecursivelyAllowed
‪setDirectoryRemoveRecursivelyAllowed($value)
Definition: BackendUserGroup.php:466
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setExplicitlyAllowAndDeny
‪setExplicitlyAllowAndDeny($explicitlyAllowAndDeny)
Definition: BackendUserGroup.php:295
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:18
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setFileOperationPermissions
‪setFileOperationPermissions($fileOperationPermissions)
Definition: BackendUserGroup.php:375
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setTsConfig
‪setTsConfig($tsConfig)
Definition: BackendUserGroup.php:496
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getPageTypes
‪string getPageTypes()
Definition: BackendUserGroup.php:265
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getAllowedExcludeFields
‪string getAllowedExcludeFields()
Definition: BackendUserGroup.php:285
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setDirectoryCopyAllowed
‪setDirectoryCopyAllowed($value)
Definition: BackendUserGroup.php:446
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setTitle
‪setTitle($title)
Definition: BackendUserGroup.php:106
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$explicitlyAllowAndDeny
‪string $explicitlyAllowAndDeny
Definition: BackendUserGroup.php:67
‪TYPO3
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$tsConfig
‪string $tsConfig
Definition: BackendUserGroup.php:91
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\removeSubGroup
‪removeSubGroup(\TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup $groupToDelete)
Definition: BackendUserGroup.php:166
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setWorkspacePermissions
‪setWorkspacePermissions($workspacePermission)
Definition: BackendUserGroup.php:335
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getTablesListening
‪string getTablesListening()
Definition: BackendUserGroup.php:225
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$description
‪string $description
Definition: BackendUserGroup.php:39
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getTablesModify
‪string getTablesModify()
Definition: BackendUserGroup.php:245
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\DIRECTORY_OPPERATIONS
‪const DIRECTORY_OPPERATIONS
Definition: BackendUserGroup.php:28
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$title
‪string $title
Definition: BackendUserGroup.php:35
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setTablesModify
‪setTablesModify($tablesModify)
Definition: BackendUserGroup.php:235
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:23
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setModules
‪setModules($modules)
Definition: BackendUserGroup.php:195
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setAllowedLanguages
‪setAllowedLanguages($allowedLanguages)
Definition: BackendUserGroup.php:315
‪TYPO3\CMS\Extbase\Persistence\ObjectStorage
Definition: ObjectStorage.php:28
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$databaseMounts
‪string $databaseMounts
Definition: BackendUserGroup.php:79
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$subGroups
‪TYPO3 CMS Extbase Persistence ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup > $subGroups
Definition: BackendUserGroup.php:43
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup
Definition: BackendUserGroup.php:26
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getExplicitlyAllowAndDeny
‪string getExplicitlyAllowAndDeny()
Definition: BackendUserGroup.php:305
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$fileOperationPermissions
‪int $fileOperationPermissions
Definition: BackendUserGroup.php:83
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\__construct
‪__construct()
Definition: BackendUserGroup.php:96
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\isFileOperationAllowed
‪bool isFileOperationAllowed()
Definition: BackendUserGroup.php:396
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$modules
‪string $modules
Definition: BackendUserGroup.php:47
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setLockToDomain
‪setLockToDomain($lockToDomain)
Definition: BackendUserGroup.php:476
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setSubGroups
‪setSubGroups(ObjectStorage $subGroups)
Definition: BackendUserGroup.php:146
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getDescription
‪string getDescription()
Definition: BackendUserGroup.php:136
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setPageTypes
‪setPageTypes($pageTypes)
Definition: BackendUserGroup.php:255
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$allowedExcludeFields
‪string $allowedExcludeFields
Definition: BackendUserGroup.php:63
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\DIRECTORY_REMOVE_RECURSIVELY
‪const DIRECTORY_REMOVE_RECURSIVELY
Definition: BackendUserGroup.php:30
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setTablesListening
‪setTablesListening($tablesListening)
Definition: BackendUserGroup.php:215
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$workspacePermission
‪bool $workspacePermission
Definition: BackendUserGroup.php:75
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getAllowedLanguages
‪string getAllowedLanguages()
Definition: BackendUserGroup.php:325
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\isDirectoryCopyAllowed
‪bool isDirectoryCopyAllowed()
Definition: BackendUserGroup.php:436
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\removeAllSubGroups
‪removeAllSubGroups()
Definition: BackendUserGroup.php:174
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getTitle
‪string getTitle()
Definition: BackendUserGroup.php:116
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\isPermissionSet
‪bool isPermissionSet($permission)
Definition: BackendUserGroup.php:517
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$tablesListening
‪string $tablesListening
Definition: BackendUserGroup.php:51
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$lockToDomain
‪string $lockToDomain
Definition: BackendUserGroup.php:87
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getWorkspacePermission
‪bool getWorkspacePermission()
Definition: BackendUserGroup.php:345
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$tablesModify
‪string $tablesModify
Definition: BackendUserGroup.php:55
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setDirectoryOperationAllowed
‪setDirectoryOperationAllowed($value)
Definition: BackendUserGroup.php:426
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\addSubGroup
‪addSubGroup(\TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup $beGroup)
Definition: BackendUserGroup.php:156
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getSubGroups
‪TYPO3 CMS Extbase Persistence ObjectStorage getSubGroups()
Definition: BackendUserGroup.php:185
‪TYPO3\CMS\Extbase\Domain\Model
Definition: AbstractFileCollection.php:16
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setDescription
‪setDescription($description)
Definition: BackendUserGroup.php:126
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setDatabaseMounts
‪setDatabaseMounts($databaseMounts)
Definition: BackendUserGroup.php:355
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getDatabaseMounts
‪string getDatabaseMounts()
Definition: BackendUserGroup.php:365
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getFileOperationPermissions
‪int getFileOperationPermissions()
Definition: BackendUserGroup.php:385
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\FILE_OPPERATIONS
‪const FILE_OPPERATIONS
Definition: BackendUserGroup.php:27
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getTsConfig
‪string getTsConfig()
Definition: BackendUserGroup.php:506
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\$allowedLanguages
‪string $allowedLanguages
Definition: BackendUserGroup.php:71
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setFileOperationAllowed
‪setFileOperationAllowed($value)
Definition: BackendUserGroup.php:406
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setPermission
‪setPermission($permission, $value)
Definition: BackendUserGroup.php:528
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\setAllowedExcludeFields
‪setAllowedExcludeFields($allowedExcludeFields)
Definition: BackendUserGroup.php:275
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\getLockToDomain
‪string getLockToDomain()
Definition: BackendUserGroup.php:486
‪TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup\DIRECTORY_COPY
‪const DIRECTORY_COPY
Definition: BackendUserGroup.php:29