‪TYPO3CMS  9.5
ModuleStorage.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 {
27  protected ‪$entries;
28 
32  public function ‪__construct()
33  {
34  $this->entries = new \SplObjectStorage();
35  }
36 
42  public function ‪setEntries(‪$entries)
43  {
44  $this->entries = ‪$entries;
45  }
46 
52  public function ‪getEntries()
53  {
54  return ‪$this->entries;
55  }
56 
62  public function ‪attachEntry(‪BackendModule $entry)
63  {
64  $this->entries->attach($entry);
65  }
66 }
‪TYPO3\CMS\Backend\Module\ModuleStorage
Definition: ModuleStorage.php:23
‪TYPO3\CMS\Backend\Module\ModuleStorage\$entries
‪SplObjectStorage $entries
Definition: ModuleStorage.php:26
‪TYPO3\CMS\Backend\Module\ModuleStorage\attachEntry
‪attachEntry(BackendModule $entry)
Definition: ModuleStorage.php:61
‪TYPO3\CMS\Core\SingletonInterface
Definition: SingletonInterface.php:22
‪TYPO3\CMS\Backend\Domain\Model\Module\BackendModule
Definition: BackendModule.php:21
‪TYPO3\CMS\Backend\Module\ModuleStorage\setEntries
‪setEntries($entries)
Definition: ModuleStorage.php:41
‪TYPO3\CMS\Backend\Module\ModuleStorage\__construct
‪__construct()
Definition: ModuleStorage.php:31
‪TYPO3\CMS\Backend\Module
Definition: AbstractFunctionModule.php:2
‪TYPO3\CMS\Backend\Module\ModuleStorage\getEntries
‪SplObjectStorage getEntries()
Definition: ModuleStorage.php:51