org.puremvc.php.interfaces

# Class: IModel Source Location: /interfaces/IModel.php
### Interface Overview
The interface definition for a PureMVC Model. | ### Methods hasProxy registerProxy removeProxy retrieveProxy
### Class Details [line 33] The interface definition for a PureMVC Model. In PureMVC, IModel implementors provide access to IProxy objects by named lookup. An IModel assumes these responsibilities: Maintain a cache of IProxy instances Provide methods for registering, retrieving, and removing IProxy 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 IProxy instance to check for.
[ Top ] ### method registerProxy [line 41]
`void registerProxy( IProxy $proxy, proxy 1)`
Register an IProxy instance with the Model . #### Tags:
access: | public
#### Parameters:
proxy | 1 | an object reference to be held by the Model .
proxyName | $proxy | the name to associate with this IProxy instance.
[ Top ] ### method removeProxy [line 56]
`void removeProxy( proxyName $proxyName)`
Remove an IProxy instance from the Model. #### Tags:
access: | public
#### Parameters:
proxyName | $proxyName | name of the IProxy instance to be removed.
[ Top ] ### method retrieveProxy [line 49]
`the retrieveProxy( proxyName $proxyName)`
Retrieve an IProxy instance from the Model. #### Tags:
return: | IProxy instance previously registered with the given proxyName .
access: | public
#### Parameters:
proxyName | $proxyName |
[ Top ] Documentation generated on Tue, 30 Sep 2008 08:05:44 -0700 by phpDocumentor 1.4.0