spunQ_Popup Class Reference

A popup that will created using javascript. More...

Inheritance diagram for spunQ_Popup:

spunQ_HtmlPopupLogTarget

List of all members.

Public Member Functions

 __construct ($name)
 Constructor.
 getName ()
 addText ($text)
 Adds text to this popup.
 display ($indent=0)
 Prints the javascript for this popup.
 toString ($indent=0)
 Transforms this popup object to its javascript representation.

Static Public Member Functions

static getInstances ()
 Gets all instances of this class.

Protected Member Functions

 put ($string, $indent)
 Convenience function for formatting a single line.

Protected Attributes

 $name
 The name of this popup.
 $text = ''
 The contents of this popup.

Static Protected Attributes

static $instances = array()
 All instances of this class.


Detailed Description

A popup that will created using javascript.

Definition at line 6 of file Popup.class.php.


Constructor & Destructor Documentation

spunQ_Popup::__construct ( name  ) 

Constructor.

Parameters:
$name The name of this popup

Definition at line 38 of file Popup.class.php.


Member Function Documentation

spunQ_Popup::addText ( text  ) 

Adds text to this popup.

Parameters:
$text Text to add
Returns:
spunQ_Popup $this

Definition at line 53 of file Popup.class.php.

spunQ_Popup::display ( indent = 0  ) 

Prints the javascript for this popup.

Parameters:
$indent The amount of indentation to use for the code.
Returns:
spunQ_Popup $this

Definition at line 63 of file Popup.class.php.

static spunQ_Popup::getInstances (  )  [static]

Gets all instances of this class.

Returns:
array<spunQ_Popup>

Definition at line 18 of file Popup.class.php.

spunQ_HtmlGenerator::put ( string,
indent 
) [protected, inherited]

Convenience function for formatting a single line.

Parameters:
$string The string to print
$indent The indentation level to use, a numeric value.
Returns:
string The indented string.

Definition at line 11 of file HtmlGenerator.class.php.

spunQ_Popup::toString ( indent = 0  ) 

Transforms this popup object to its javascript representation.

Parameters:
$indent The indentation level to use, a numeric value.
Returns:
string

Reimplemented in spunQ_HtmlPopupLogTarget.

Definition at line 73 of file Popup.class.php.


Member Data Documentation

spunQ_Popup::$instances = array() [static, protected]

All instances of this class.

Type:
array<spunQ_Popup>

Definition at line 12 of file Popup.class.php.

spunQ_Popup::$name [protected]

The name of this popup.

Type:
string

Definition at line 26 of file Popup.class.php.

spunQ_Popup::$text = '' [protected]

The contents of this popup.

Type:
string

Definition at line 32 of file Popup.class.php.


The documentation for this class was generated from the following file:

Generated on Fri Jul 1 11:12:43 2011 for spunQ3 by  doxygen 1.5.9