org.puremvc.php.interfaces
[ class tree: org.puremvc.php.interfaces ] [ index: org.puremvc.php.interfaces ] [ all elements ]

Class: IModel

Source Location: /interfaces/IModel.php

Interface Overview


The interface definition for a PureMVC Model.


Methods



Class Details

[line 33]
The interface definition for a PureMVC Model.

In PureMVC,

implementors provide access to
objects by named lookup.

An

assumes these responsibilities:

  • Maintain a cache of
    instances
  • Provide methods for registering, retrieving, and removing
    instances




[ Top ]


Class Methods


method hasProxy [line 63]

void hasProxy( proxyName $proxyName)

Check to see if a Proxy is registered with the Model.



Tags:

access:  public


Parameters:

proxyName   $proxyName   name of the
instance to check for.

[ Top ]

method registerProxy [line 41]

void registerProxy( IProxy $proxy, proxy 1)

Register an
instance with the
.



Tags:

access:  public


Parameters:

proxy   1   an object reference to be held by the
.
proxyName   $proxy   the name to associate with this
instance.

[ Top ]

method removeProxy [line 56]

void removeProxy( proxyName $proxyName)

Remove an
instance from the Model.



Tags:

access:  public


Parameters:

proxyName   $proxyName   name of the
instance to be removed.

[ Top ]

method retrieveProxy [line 49]

the retrieveProxy( proxyName $proxyName)

Retrieve an
instance from the Model.



Tags:

return:  
instance previously registered with the given
  1. proxyName
.
access:  public


Parameters:

proxyName   $proxyName  

[ Top ]


Documentation generated on Tue, 30 Sep 2008 08:05:44 -0700 by phpDocumentor 1.4.0