‪TYPO3CMS  10.4
ModuleStorage.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 
20 
25 {
29  protected ‪$entries;
30 
34  public function ‪__construct()
35  {
36  $this->entries = new \SplObjectStorage();
37  }
38 
44  public function ‪setEntries(‪$entries)
45  {
46  $this->entries = ‪$entries;
47  }
48 
54  public function ‪getEntries()
55  {
56  return ‪$this->entries;
57  }
58 
64  public function ‪attachEntry(‪BackendModule $entry)
65  {
66  $this->entries->attach($entry);
67  }
68 }
‪TYPO3\CMS\Backend\Module\ModuleStorage
Definition: ModuleStorage.php:25
‪TYPO3\CMS\Backend\Module\ModuleStorage\$entries
‪SplObjectStorage $entries
Definition: ModuleStorage.php:28
‪TYPO3\CMS\Backend\Module\ModuleStorage\attachEntry
‪attachEntry(BackendModule $entry)
Definition: ModuleStorage.php:63
‪TYPO3\CMS\Core\SingletonInterface
Definition: SingletonInterface.php:23
‪TYPO3\CMS\Backend\Domain\Model\Module\BackendModule
Definition: BackendModule.php:22
‪TYPO3\CMS\Backend\Module\ModuleStorage\setEntries
‪setEntries($entries)
Definition: ModuleStorage.php:43
‪TYPO3\CMS\Backend\Module\ModuleStorage\__construct
‪__construct()
Definition: ModuleStorage.php:33
‪TYPO3\CMS\Backend\Module
Definition: ModuleLoader.php:16
‪TYPO3\CMS\Backend\Module\ModuleStorage\getEntries
‪SplObjectStorage getEntries()
Definition: ModuleStorage.php:53