‪TYPO3CMS  10.4
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 
38  {
39  $this->structure = ‪$structure;
40  }
41 
47  public function ‪getStatus(): ‪FlashMessageQueue
48  {
49  $messageQueue = new ‪FlashMessageQueue('install');
50  foreach ($this->structure->getStatus() as $message) {
51  $messageQueue->enqueue($message);
52  }
53  return $messageQueue;
54  }
55 
61  public function ‪fix(): ‪FlashMessageQueue
62  {
63  $messageQueue = new ‪FlashMessageQueue('install');
64  foreach ($this->structure->fix() as $message) {
65  $messageQueue->enqueue($message);
66  }
67  return $messageQueue;
68  }
69 }
‪TYPO3\CMS\Install\FolderStructure\StructureFacadeInterface
Definition: StructureFacadeInterface.php:24
‪TYPO3\CMS\Install\FolderStructure\StructureFacade\__construct
‪__construct(RootNodeInterface $structure)
Definition: StructureFacade.php:36
‪TYPO3\CMS\Install\FolderStructure\StructureFacade\$structure
‪RootNodeInterface $structure
Definition: StructureFacade.php:29
‪TYPO3\CMS\Install\FolderStructure\StructureFacade
Definition: StructureFacade.php:26
‪TYPO3\CMS\Install\FolderStructure\RootNodeInterface
Definition: RootNodeInterface.php:22
‪TYPO3\CMS\Install\FolderStructure
Definition: AbstractNode.php:16
‪TYPO3\CMS\Install\FolderStructure\StructureFacade\fix
‪FlashMessageQueue fix()
Definition: StructureFacade.php:60
‪TYPO3\CMS\Install\FolderStructure\StructureFacade\getStatus
‪FlashMessageQueue getStatus()
Definition: StructureFacade.php:46
‪TYPO3\CMS\Core\Messaging\FlashMessageQueue
Definition: FlashMessageQueue.php:29