Automad
 All Classes Functions Variables Pages
Automad\Core\Debug Class Reference

Static Public Member Functions

static errorReporting ()
 
static getLog ()
 
static log ($element, $description= '')
 

Static Private Member Functions

static timerStart ()
 
static timerStop ()
 
static uc ()
 

Static Private Attributes

static $buffer = ''
 
static $time = NULL
 

Detailed Description

The Debug class holds all methods to help debugging while development. The output of all the contained methods can be activated/deactivated with defining the AM_DEBUG_ENABLED constant. All logged information will be stored in $buffer as JS's console.log() items.

Author
Marc Anton Dahmen hello.nosp@m.@mar.nosp@m.cdahm.nosp@m.en.d.nosp@m.e
License
MIT license - http://automad.org/license

Definition at line 54 of file debug.php.

Member Function Documentation

static Automad\Core\Debug::errorReporting ( )
static

Enable full error reporting, when debugging is enabled.

Definition at line 75 of file debug.php.

static Automad\Core\Debug::getLog ( )
static

Stop timer, calculate execution time, get user & server constants and return the log buffer.

Definition at line 88 of file debug.php.

static Automad\Core\Debug::timerStart ( )
staticprivate

Start the timer on the first call to calculate the execution time when getLog() gets called.

Definition at line 153 of file debug.php.

static Automad\Core\Debug::timerStop ( )
staticprivate

Stop the timer and log the execution time.

Definition at line 168 of file debug.php.

static Automad\Core\Debug::uc ( )
staticprivate

Log all user constants for get_defined_constants().

Definition at line 182 of file debug.php.

Member Data Documentation

Automad\Core\Debug::$buffer = ''
staticprivate

Log buffer.

Definition at line 61 of file debug.php.

Automad\Core\Debug::$time = NULL
staticprivate

Timestamp when script started.

Definition at line 68 of file debug.php.


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