m3w_parser
in package
This allows us to parse and obtain data from .m3w containers.
.m3w containers are really simple cofiguration files that can return arrays without being as complicated and strict as .xml or .php files. Basically they're really easy, each line of them represents a piece of information. If the line starts with an @ it adds the data to a key, if preceeded by a # it will detect it as comment. The data looks like a phpdoc piece of information.
Tags
Table of Contents
- $content : mixed
- $textContent : mixed
- __construct() : mixed
- getKey() : mixed
- getSingle() : mixed
- getText() : mixed
- addField() : mixed
- parse() : mixed
Properties
$content
private
mixed
$content
= array()
$textContent
private
mixed
$textContent
= ''
Methods
__construct()
public
__construct(mixed $file) : mixed
Parameters
- $file : mixed
Return values
mixed —getKey()
public
getKey(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —getSingle()
public
getSingle(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —getText()
public
getText() : mixed
Return values
mixed —addField()
protected
addField(mixed $data) : mixed
Parameters
- $data : mixed
Return values
mixed —parse()
protected
parse(mixed $data) : mixed
Parameters
- $data : mixed