... | ... | @@ -173,7 +173,7 @@ Komplettes HTML bekommen |
|
|
```php
|
|
|
<?php
|
|
|
|
|
|
$result = QUI\Utils\XML\Settings::getCategoriesHtml($files);
|
|
|
$result = QUI\Utils\XML\Settings::getInstance()->getCategoriesHtml($files);
|
|
|
|
|
|
```
|
|
|
|
... | ... | @@ -184,7 +184,7 @@ Komplettes HTML einer einzelnen Kategorie bekommen |
|
|
<?php
|
|
|
|
|
|
$category = 'NameOfTheCategory';
|
|
|
$result = QUI\Utils\XML\Settings::getCategoriesHtml($files, $category);
|
|
|
$result = QUI\Utils\XML\Settings::getInstance()->getCategoriesHtml($files, $category);
|
|
|
|
|
|
```
|
|
|
|
... | ... | @@ -194,7 +194,21 @@ Collection aller Kategorien in den XML Files bekommen |
|
|
```php
|
|
|
<?php
|
|
|
|
|
|
$Result = QUI\Utils\XML\Settings::parseCategoriesToCollection($files);
|
|
|
$Result = QUI\Utils\XML\Settings::getInstance()->parseCategoriesToCollection($files);
|
|
|
$result = $Result->toArray();
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
Eigenen XML Pfad für eigene Settings verwenden
|
|
|
------
|
|
|
|
|
|
```php
|
|
|
<?php
|
|
|
|
|
|
$Settings = QUI\Utils\XML\Settings::getInstance();
|
|
|
Settings->setXMLPath('//MyAwesomePlugin/settings/window');
|
|
|
|
|
|
$Result = Settings->parseCategoriesToCollection($files);
|
|
|
$result = $Result->toArray();
|
|
|
|
|
|
``` |