spunQ_HtmlPopupLogTarget Class Reference

A log target displaying events in an html popup. More...

Inheritance diagram for spunQ_HtmlPopupLogTarget:

spunQ_Popup spunQ_ILogTarget

List of all members.

Public Member Functions

 toString ($indent=0)
 Overridden to generate content before transforming to script.
 logMessage ($path, $priority, $message, $file, $line)
 This function will be called by the logging facility.
 getName ()
 addText ($text)
 Adds text to this popup.
 display ($indent=0)
 Prints the javascript for this popup.

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.

Static Private Member Functions

static getLevelString ($priority)
 Will convert the numeric event priority to a string.

Private Attributes

 $generatedContent = false
 Whether the content was already generated.
 $messages = array()


Detailed Description

A log target displaying events in an html popup.

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


Member Function Documentation

spunQ_Popup::addText ( text  )  [inherited]

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  )  [inherited]

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, inherited]

Gets all instances of this class.

Returns:
array<spunQ_Popup>

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

static spunQ_HtmlPopupLogTarget::getLevelString ( priority  )  [static, private]

Will convert the numeric event priority to a string.

Parameters:
$priority The numeric priority, could be either of the constants in spunQ_Logger.
Returns:
string

Definition at line 14 of file HtmlPopupLogTarget.class.php.

spunQ_HtmlPopupLogTarget::logMessage ( path,
priority,
message,
file,
line 
)

This function will be called by the logging facility.

A logger rule matched a logging event that was triggered and this log target was provided to the rule.

See also:
spunQ_Logger
Parameters:
$path The source of the log event.
$priority The priority with which the Logger was invoked.
$message The message of the log event.
$file The path to the file where the event actually occured.
$line The line within the file where the log event was triggered
Returns:
spunQ_ILogTarget $this

Implements spunQ_ILogTarget.

Definition at line 66 of file HtmlPopupLogTarget.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.


Member Data Documentation

spunQ_HtmlPopupLogTarget::$generatedContent = false [private]

Whether the content was already generated.

Type:
boolean

Definition at line 34 of file HtmlPopupLogTarget.class.php.

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

All instances of this class.

Type:
array<spunQ_Popup>

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

spunQ_Popup::$name [protected, inherited]

The name of this popup.

Type:
string

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

spunQ_Popup::$text = '' [protected, inherited]

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:40 2011 for spunQ3 by  doxygen 1.5.9