This class combines the functionality of the WebApp class with a Smarty template. It makes it easy to create Smarty templates that can render the controls contained in the WebApp without having to assign each control to the Smarty object manually.
Definition at line 20 of file smartyapp.php.
Public Member Functions | |
SmartyApp () | |
Instantiates a new Smarty object . | |
assign () | |
Assign controls to the Smarty object. | |
& | getSmarty () |
Get the smarty object. | |
setSmarty (&$smarty) | |
Set the smarty object. | |
getTemplate () | |
Get the Smarty template. | |
setTemplate ($template) | |
Set the Smarty template. | |
version () | |
Get the version of the class. | |
toString () | |
Get the result of rendering the map to the Smarty template. | |
__sleep () | |
Prepare object for serialisation. | |
Public Attributes | |
$smarty | |
A Smarty object. | |
$template | |
A Smarty template. |
|
Instantiates a new Smarty object .
Definition at line 30 of file smartyapp.php. |
|
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.
Reimplemented from WebApp. Reimplemented in MapApp. Definition at line 134 of file smartyapp.php. |
|
Assign controls to the Smarty object. Assigns all controls in the ControlBox to the Smarty object. Only objects which are allowed to be displayed are assigned. The ID of each control is the name with which it should be referenced in the template.
Reimplemented in MapApp. Definition at line 44 of file smartyapp.php. References $smarty. |
|
Get the smarty object.
Definition at line 61 of file smartyapp.php. |
|
Get the Smarty template.
Reimplemented in MapApp. Definition at line 79 of file smartyapp.php. |
|
Set the smarty object.
Definition at line 71 of file smartyapp.php. References $smarty. |
|
Set the Smarty template.
Reimplemented in MapApp. Definition at line 88 of file smartyapp.php. References $template. |
|
Get the result of rendering the map to the Smarty template.
Reimplemented in MapApp. Definition at line 111 of file smartyapp.php. |
|
Get the version of the class.
Reimplemented from WebApp. Reimplemented in MapApp. Definition at line 97 of file smartyapp.php. References SMARTYAPP_VERSION. |
|
A Smarty object.
Definition at line 23 of file smartyapp.php. Referenced by assign(), setSmarty(), and toString(). |
|
A Smarty template.
Definition at line 25 of file smartyapp.php. Referenced by setTemplate(), and toString(). |