Properties

$lua

$lua : array

The variable contraining the lua lines to be parsed

Type

array

$position

$position : integer

The current possition in the array we are parsing

Type

integer

$lines

$lines : integer

The size of the lua array

Type

integer

$data

$data : array

Array containing the result of the parse

Type

array

$blnOneTable

$blnOneTable : 

Type

Methods

__construct()

__construct(  $blnOneTable = true) 

Parameters

$blnOneTable

array2lua()

array2lua(  $arrData) 

Parameters

$arrData

toArray()

toArray(  $input) : array

Returns the array the parsed from the lua file.

Parameters

$input

Returns

array —

The resulting array from the parse

parse()

parse() : void

Starts the parsing of the lua array.

parser()

parser(  $position = false) : void

Does the actually parsing of the lua table.

Parameters

$position

trimValue()

trimValue(string  $string) : string

Trims of leading and trailing quotationmarks and tailing comman from the value.

Example: Input: "Value", Output: Value

Parameters

string $string

String to be trimmed

Returns

string —

Trimmed string

arrayId()

arrayId(string  $string) 

Extracts the Key-Value for array indexing.

String Example: Input: ["Key"] Output: Key Integer Example: Input: [0] Output: 0

Parameters

string $string

String to extract array index from @return string Array index

_parseArray2lua()

_parseArray2lua(  $arrData) 

Parameters

$arrData

_parseKey()

_parseKey(  $strKey) 

Parameters

$strKey