context

context

new context()

This is the main command for the mvc framework, that which all other commands extend

Members

(static) this.args

Properties:
Name Type Description
args

Optional arguments for modular contexts, this is so that they can be initialized by other context objects by passing required parameters

Methods

(static) construct()

Override the default construct function and set any custom behaviour

(static) createServer()

Initialize the node server

(private, static) map(Obj, evnt, {number})

Map function to map an object to the notifier object, all objects, Models, Views, Command and Modules must be mapped to the notification object so that they can be found and referenced by the application command object

Parameters:
Name Type Description
Obj Object

The object to map

evnt Object

The object to evnt

{number} String

ref - Either a string name reference or instance id reference

Returns:

The instance mapped

(static) mapCommands()

Override the map commands method

(static) mapModels()

Override the map models method

(static) mapServices()

Override the map services method

(static) mapViews()

Override the map views method

(static) start(url, req)

Parse and format any request variables

Parameters:
Name Type Description
url String

The url

req Object

The request object

(static) start()

New start method for the Node Context override to Initialize the server

(static) startup()

Context startup method to init models, views and commands

(static) unmap(name)

Remove an object mapping from the notification object

Parameters:
Name Type Description
name Object

The object to map