org.puremvc.php.patterns.proxy

# Class: Proxy Source Location: /patterns/proxy/Proxy.php
### Class Overview
    Notifier
       |
       ..Proxy
A base IProxy implementation. #### Author(s): Implements interfaces: IProxy INotifier | ### Variables $data $facade $proxyName | ### Constants NAME | ### Methods __construct getData getProxyName onRegister onRemove setData
### Child classes: ApplicationDataProxy The ApplicationDataProxy manipulates the ApplicationDataVO which contains all of the general application data. | ### Inherited Methods #### Class: Notifier Notifier::__construct() Notifier::sendNotification()
### Class Details [line 41] A base IProxy implementation. In PureMVC, Proxy classes are used to manage parts of the application's data model. A Proxy might simply manage a reference to a local data object, in which case interacting with it might involve setting and getting of its data in synchronous fashion. Proxy classes are also used to encapsulate the application's interaction with remote services to save or retrieve data, in which case, we adopt an asyncronous idiom; setting data (or calling a method) on the Proxy and listening for a Notification to be sent when the Proxy has retrieved the data from the service. #### Tags:
see: | org.puremvc.core.model.Model Model
[ Top ] ### Class Variables #### $data = [line 48] #### Tags:
access: | protected
Type: | mixed
[ Top ] #### $facade = [line 50] #### Tags:
access: | protected
Type: | mixed
Overrides: | Array
[ Top ] #### $proxyName = [line 45] #### Tags:
access: | protected
Type: | mixed
[ Top ] ### Class Methods ### constructor __construct [line 57]
`Proxy __construct( [ $proxyName = null], [ $data = null])`
Constructor #### Tags:
access: | public
Overridden in child classes as: ApplicationDataProxy::__construct() Constructor Overrides Notifier::__construct() (parent method not documented) #### Parameters:
| $proxyName |
| $data |
[ Top ] ### method getData [line 83]
`void getData( )`
Get the data object #### Tags:
access: | public
[ Top ] ### method getProxyName [line 67]
`void getProxyName( )`
Get the proxy name #### Tags:
access: | public
[ Top ] ### method onRegister [line 91]
`void onRegister( )`
Called when the Model registers a Proxy. #### Tags:
access: | public
[ Top ] ### method onRemove [line 99]
`void onRemove( )`
Called when the Model removes a Proxy. #### Tags:
access: | public
[ Top ] ### method setData [line 75]
`void setData( $data)`
Set the data object #### Tags:
access: | public
#### Parameters:
| $data |
[ Top ] ### Class Constants #### NAME = 'Proxy' [line 52] [ Top ] Documentation generated on Tue, 30 Sep 2008 08:05:46 -0700 by phpDocumentor 1.4.0