ILIAS  release_7 Revision v7.30-3-g800a261c036
YamlParser.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
6
8
12interface YamlParser
13{
19 public function parseYamlStringArrayFromFile($filePath);
20
26 public function parseArrayFromFile($filePath);
27
33 public function parseEntriesFromFile($filePath);
34
40 public function parseYamlStringArrayFromString($content);
41
47 public function parseArrayFromString($content);
48
54 public function parseEntriesFromString($content);
55}
An exception for terminatinating execution or to throw for unit testing.
Parses information from UI components.
Definition: YamlParser.php:13
parseEntriesFromString($content)
Returns a list UI Component Entries of the parsed YAML entries in a given string.
parseEntriesFromFile($filePath)
Returns a Entry\ComponentEntries of the parsed YAML entries in a given file.
parseArrayFromString($content)
Returns an array of arrays of the parsed YAML entries in a given string.
parseArrayFromFile($filePath)
Returns an array of arrays of the parsed YAML entries in a given file.
parseYamlStringArrayFromFile($filePath)
Returns an array of all YAML entries as string of the components in the factories in a given file.
parseYamlStringArrayFromString($content)
Returns an array of all YAML entries as string of the components in the factories in a given string.