XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Plugins_Loggers_ArrayLogger Class Reference
Inheritance diagram for Swift_Plugins_Loggers_ArrayLogger:
Inheritance graph

Public Member Functions

 __construct ($size=50)
 
 add ($entry)
 
 clear ()
 
 dump ()
 

Private Attributes

 $_log = array()
 
 $_size = 0
 

Detailed Description

Definition at line 17 of file ArrayLogger.php.

Constructor & Destructor Documentation

Swift_Plugins_Loggers_ArrayLogger::__construct (   $size = 50)

Definition at line 38 of file ArrayLogger.php.

Member Function Documentation

Swift_Plugins_Loggers_ArrayLogger::add (   $entry)

Add a log entry.

Parameters
string$entry

Implements Swift_Plugins_Logger.

Definition at line 47 of file ArrayLogger.php.

Swift_Plugins_Loggers_ArrayLogger::clear ( )

Clear the log contents.

Implements Swift_Plugins_Logger.

Definition at line 59 of file ArrayLogger.php.

Swift_Plugins_Loggers_ArrayLogger::dump ( )

Get this log as a string.

Returns
string

Implements Swift_Plugins_Logger.

Definition at line 68 of file ArrayLogger.php.

Member Data Documentation

Swift_Plugins_Loggers_ArrayLogger::$_log = array()
private

Definition at line 25 of file ArrayLogger.php.

Swift_Plugins_Loggers_ArrayLogger::$_size = 0
private

Definition at line 32 of file ArrayLogger.php.


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