Parse
class Parse (View source)
The Parse class holds all parsing methods.
Methods
static array
static array
csv(string $str)
Split and trim comma separated string.
static array
dataFile(string $file)
Loads and parses a text file.
static array
fileDeclaration(string $str, Page $Page, bool $stripBaseDir = false)
deprecated
Please use FileUtils::fileDeclaration()
instead.
static array
jsonOptions(string $str)
Parse a (dirty) JSON string and return an associative, filtered array
Details
at line 59
static array
caption(string $file)
deprecated
deprecated
Please use FileUtils::caption()
instead.
at line 69
static array
csv(string $str)
Split and trim comma separated string.
at line 85
static array
dataFile(string $file)
Loads and parses a text file.
First it separates the different blocks into simple key/value pairs. Then it creates an array of vars by splitting the pairs.
at line 125
static array
fileDeclaration(string $str, Page $Page, bool $stripBaseDir = false)
deprecated
deprecated
Please use FileUtils::fileDeclaration()
instead.
at line 135
static array
jsonOptions(string $str)
Parse a (dirty) JSON string and return an associative, filtered array