Static tables module. Static tables are described in detail in Static Tables article.

Constructor

Methods

find (table:String, params:Dynamic):List<Dynamic>

Returns all rows from a loaded static table that have given fields set to the given values.

Parameters:

table

Table name.

params

Search fields anonymous object.

Returns:

A list of table rows that match the criteria. Returns empty list if no rows were found.

getIterator (table:String):Iterator<Dynamic>

Returns an iterator for loaded static table rows.

Parameters:

table

Table name.

Returns:

Iterator of table rows.

getRow (table:String, id:Int):Dynamic

Returns a row from a loaded static table.

Parameters:

table

Table name.

id

Table row ID.

Returns:

Table row.

registerTable (t:_TableInfo):Void

Registers a new static table.

Intended to be called in a module constructor.

Parameters:

t

Table type description.