Class: Helper

mmir.ctrl. Helper

new mmir.ctrl.Helper(ctrl, name, instanceConstr)

The Helper Class is a kind of interface-class which gives access to the methods and data of a helper (which itself belongs to a controller)
Name Type Description
ctrl mmir.ctrl.Controller Controller instance / object
name String Name of the Helper
instanceConstr function the constructor for creating a new helper instance

Members

The controller to which this helper belongs.

implObject

The definition of the helper object, i.e. its implementation, containing all properties and functions of the controller.
A method of the helper can be called via:
	this.impl.method(parameter);

nameString

The name of the helper.

protectedscript

Deprecated

Methods

perform(actionName, data){Object}

This function performs an action of a helper.
Name Type Description
actionName String Name of the method to be executed
data Object Data to pass to the method of the helper as argument
Returns:
Type Description
Object The return value of the executed method