PureMVC Framework for haXe: API Documentation
Back | Index
class org.puremvc.haxe.core.Model
implements org.puremvc.haxe.interfaces.IModel

A Singleton IModel implementation.

In PureMVC, the Model class provides access to model objects (Proxies) by named lookup.

The Model assumes these responsibilities:

Your application must register IProxy instances with the Model. Typically, you use an ICommand to create and register IProxy instances once the Facade has initialized the Core actors.

function hasProxy(proxyName : String) : Bool
Check if a Proxy is registered
function registerProxy(proxy : org.puremvc.haxe.interfaces.IProxy) : Void
Register an IProxy with the Model.
function removeProxy(proxyName : String) : org.puremvc.haxe.interfaces.IProxy
Remove an IProxy from the Model.
function retrieveProxy(proxyName : String) : org.puremvc.haxe.interfaces.IProxy
Retrieve an IProxy from the Model.
static function getInstance() : org.puremvc.haxe.interfaces.IModel
Model Singleton Factory method.
Back | Index