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
function registerProxy(proxy : org.puremvc.haxe.interfaces.IProxy) : Void
function removeProxy(proxyName : String) : org.puremvc.haxe.interfaces.IProxy
function retrieveProxy(proxyName : String) : org.puremvc.haxe.interfaces.IProxy
static function getInstance() : org.puremvc.haxe.interfaces.IModel
Back | Index