ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
YamlParser.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
28interface YamlParser
29{
34 public function parseYamlStringArrayFromFile(string $filePath): array;
35
39 public function parseArrayFromFile(string $filePath): array;
40
44 public function parseEntriesFromFile(string $filePath): Entry\ComponentEntries;
45
49 public function parseYamlStringArrayFromString(string $content): array;
50
54 public function parseArrayFromString(string $content): array;
55
59 public function parseEntriesFromString(string $content): Entry\ComponentEntries;
60}
Parses information from UI components.
Definition: YamlParser.php:29
parseEntriesFromFile(string $filePath)
Returns an Entry\ComponentEntries of the parsed YAML entries in a given file.
parseArrayFromString(string $content)
Returns an array of arrays of the parsed YAML entries in a given string.
parseEntriesFromString(string $content)
Returns a list UI Component Entries of the parsed YAML entries in a given string.
parseArrayFromFile(string $filePath)
Returns an array of arrays of the parsed YAML entries in a given file.
parseYamlStringArrayFromString(string $content)
Returns an array of all YAML entries as string of the components in the factories in a given string.
parseYamlStringArrayFromFile(string $filePath)
Returns an array of all YAML entries as string of the components in the factories in a given file.