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

Class: Proxy

Source Location: /patterns/proxy/Proxy.php

Class Overview

Notifier
   |
   ..Proxy

A base
implementation.


Author(s):

Implements interfaces:

Variables

Constants

Methods


Child classes:

ApplicationDataProxy
The ApplicationDataProxy manipulates the ApplicationDataVO which contains all of the general application data.

Inherited Methods


Class Details

[line 41]
A base
implementation.

In PureMVC,

classes are used to manage parts of the application's data model.

A

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.

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
and listening for a
to be sent when the
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