FrontendLogic: This is the base class for all frontend related logic.

Basically, the class FrontendLogic is the base class for all your objects in the frontend. Your child classes define how your objects are named, which actions and items they contain and which item type they've got.

A word on actions: Each single object of a FrontendLogic subclass has the same amount of actions. You can't have a different set of actions for different objects of the same type.

 Methods

getFriendlyName: Returns the friendly (e.g. display) name of your objects.

getFriendlyName() : string

Returns

stringName of the object

listActions: Lists all actions

listActions() : array

The returned array has the format $actionname => $actiondescription

Returns

arrayArray of all actions

listItems: Lists all available items

listItems() : array

The returned array has the format $itemid => $itemname

Returns

arrayArray of items