Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
TemplateDocument.php
01 <?php
02
03 /**
04 * @package s9e\TextFormatter
05 * @copyright Copyright (c) 2010-2022 The s9e authors
06 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
07 */
08 namespace s9e\TextFormatter\Configurator\Items;
09
10 use s9e\SweetDOM\Document;
11 use s9e\TextFormatter\Configurator\Helpers\TemplateLoader;
12
13 class TemplateDocument extends Document
14 {
15 /**
16 * @var Template Template instance that created this document
17 */
18 protected $template;
19
20 /**
21 * Constructor
22 *
23 * @param Template Template instance that created this document
24 */
25 public function __construct(Template $template)
26 {
27 parent::__construct();
28
29 $this->template = $template;
30 }
31
32 /**
33 * Update the original template with this document's content
34 *
35 * @return void
36 */
37 public function saveChanges()
38 {
39 $this->template->setContent(TemplateLoader::save($this));
40 }
41 }