Static table row wrapper.

Constructor

new (row:Dynamic)

Creates a new instance.

Parameters:

p

Anonymous object containing the parameters.

Methods

dump (lang:String):Dynamic

Dumps table item into an anonymous object for client response. Creates a copy of internal data.

Parameters:

lang

Client language. Used for adding localized item name and description.

Returns:

Anonymous object with item attributes.

inline get (key:String):Dynamic

Returns a request parameter without any additional checks. Avoid using if possible.

Parameters:

key

Parameter name.

Returns:

Parameter value. Returns null if value does not exist.

getBool (key:String):Bool

Returns a request parameter. Will try to cast the value to Bool.

Parameters:

key

Parameter name.

Returns:

Parameter value. Returns false if value does not exist.

getFloat (key:String):Float

Returns a request parameter. Will try to cast the value to Float.

Parameters:

key

Parameter name.

Returns:

Parameter value. Returns 0.0 if value does not exist.

getInt (key:String):Int

Returns a request parameter. Will try to cast the value to Int.

Parameters:

key

Parameter name.

Returns:

Parameter value. Returns 0 if value does not exist.

getString (key:String):String

Returns a request parameter. Will try to cast the value to String.

Parameters:

key

Parameter name.

Returns:

Parameter value. Returns null if value does not exist.

inline has (key:String):Dynamic

Returns true if the request parameter with this name exists.

Parameters:

key

Parameter name.

Returns:

Returns true if the value exist. False otherwise.