Item

Item is derived from Object class.

[lide.base] ^1.0 lide.classes.item 1.0

An item represents object with numerous values can be accessed with getters and setters.


Constructor

Item class has one constructor:

object Item:new {
       Key1 = Value1,
       Key2 = Value2,
}

Inherited Methods

These methods are inherited from its super classes:

Class Method Description
Object:getName Returns item’s name.
Object:setName Sets the item’s name.

Class Methods

These methods are defined by this class.

Item:get

Gets the the value from given key.
Item:get ( string sKey )

Item:set

Sets the value of the given key.
nil Item:set( string sKey, * anyData )

Item:add

Adds a new value to item’s values list.
boolean_ Item:add( string sKey, * anyData )