Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

WebApp Class Reference

Inheritance diagram for WebApp:

Inheritance graph
List of all members.

Detailed Description

The base class for a web application.

A WebApp is a basic interface with which to develop a web application that uses a ControlBox. It provides the ability to initialise the controls and add actions and triggers to them as well as enabling them to be updated and serialised.

Definition at line 17 of file webapp.php.

Public Member Functions

 WebApp ()
 Instantiates a new ControlBox.

 update ()
 Update the controls.

getControlBox ()
 Get the ControlBox.

 init ()
 Initialise the controls.

 version ()
 Get the version of the class.

 __sleep ()
 Prepare object for serialisation.


Public Attributes

 $control_box


Constructor & Destructor Documentation

WebApp::WebApp  ) 
 

Instantiates a new ControlBox.

Definition at line 24 of file webapp.php.


Member Function Documentation

WebApp::__sleep  ) 
 

Prepare object for serialisation.

This method is automatically called just before the object is serialised to carry out clean-up operations. See the PHP documentation at http://www.php.net/manual/en/language.oop.magic-functions.php for more information.

Returns:
an array of object property names to be serialised.

Reimplemented in MapApp, and SmartyApp.

Definition at line 88 of file webapp.php.

& WebApp::getControlBox  ) 
 

Get the ControlBox.

Returns:
a reference to the ControlBox

Definition at line 46 of file webapp.php.

WebApp::init  ) 
 

Initialise the controls.

This interface is used to initialise all the controls, assigning them actions and triggers.

Returns:
void

Reimplemented in MapApp.

Definition at line 59 of file webapp.php.

WebApp::update  ) 
 

Update the controls.

Updates all controls in the control box by calling ControlBox::triggerChildActions().

Returns:
void

Definition at line 35 of file webapp.php.

References $control_box.

WebApp::version  ) 
 

Get the version of the class.

Returns:
the version string

Reimplemented in MapApp, and SmartyApp.

Definition at line 70 of file webapp.php.


Member Data Documentation

WebApp::$control_box
 

Definition at line 20 of file webapp.php.

Referenced by update().


The documentation for this class was generated from the following file:
Generated on Mon Feb 14 10:55:55 2005 for MapApp by doxygen 1.3.5