‪TYPO3CMS  ‪main
StructureFacade.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 
19 
26 {
30  protected ‪$structure;
31 
36  {
37  $this->structure = ‪$structure;
38  }
39 
43  public function ‪getStatus(): ‪FlashMessageQueue
44  {
45  $messageQueue = new ‪FlashMessageQueue('install');
46  foreach ($this->structure->getStatus() as $message) {
47  $messageQueue->enqueue($message);
48  }
49  return $messageQueue;
50  }
51 
55  public function ‪fix(): ‪FlashMessageQueue
56  {
57  $messageQueue = new ‪FlashMessageQueue('install');
58  foreach ($this->structure->fix() as $message) {
59  $messageQueue->enqueue($message);
60  }
61  return $messageQueue;
62  }
63 }
‪TYPO3\CMS\Install\FolderStructure\StructureFacadeInterface
Definition: StructureFacadeInterface.php:24
‪TYPO3\CMS\Install\FolderStructure\StructureFacade\__construct
‪__construct(RootNodeInterface $structure)
Definition: StructureFacade.php:34
‪TYPO3\CMS\Install\FolderStructure\StructureFacade\$structure
‪RootNodeInterface $structure
Definition: StructureFacade.php:29
‪TYPO3\CMS\Install\FolderStructure\StructureFacade\fix
‪fix()
Definition: StructureFacade.php:54
‪TYPO3\CMS\Install\FolderStructure\StructureFacade
Definition: StructureFacade.php:26
‪TYPO3\CMS\Install\FolderStructure\RootNodeInterface
Definition: RootNodeInterface.php:21
‪TYPO3\CMS\Install\FolderStructure
Definition: AbstractNode.php:16
‪TYPO3\CMS\Install\FolderStructure\StructureFacade\getStatus
‪getStatus()
Definition: StructureFacade.php:42
‪TYPO3\CMS\Core\Messaging\FlashMessageQueue
Definition: FlashMessageQueue.php:29