Docs For Class Debug

## Class Debug

Description

Debug generated XML

- version: 1.0
- copyright: Copyright (c) 2009-2013 Narcea Producciones Multimedia S.L. (http://www.2mdc.com)
- link: http://www.phpdocx.com
- deprecated: Use log4php included within phpdocx pro
- since: Class available since Release 1.0
- license: http://www.phpdocx.com/wp-content/themes/lightword/pro_license.php

Located in /Debug.inc (line 29)

Method Summary
static Debug getInstance ()
Debug __construct ()
void __destruct ()
void addMessage (mixed $message)
void enableDebug ()
void fDisableDebug ()
void generateTemplate ()
int getActive ()
array getMessages ()
void setActive (int $active)
void setMessages (array $messages)
string __toString ()
Methods
static method getInstance (line 98)

Singleton, return instance of class

- access: public

static Debug getInstance ()
Constructor __construct (line 63)

Construct

- access: public

Debug __construct ()
Destructor __destruct (line 73)

Destruct

- access: public

void __destruct ()
addMessage (line 156)

Add a new mesagge to the pool of _messages

- access: public

void addMessage (mixed $message)

- mixed $message

enableDebug (line 167)

Enable debug

- deprecated: deprecated since version 2.0
- access: public

void enableDebug ()
fDisableDebug (line 179)

Disable debug

- deprecated: deprecated since version 2.0
- access: public

void fDisableDebug ()
generateTemplate (line 190)

Assign template to use

- deprecated: deprecated since version 2.0
- access: protected

void generateTemplate ()
getActive (line 145)

Getter. Return debug status

- access: public

int getActive ()
getMessages (line 123)

Getter. Access to messages var

- access: public

array getMessages ()
setActive (line 134)

Setter. Enable debug

- access: public

void setActive (int $active)

- int $active

setMessages (line 112)

Setter. Access to messages var

- access: public

void setMessages (array $messages)

- array $messages

__toString (line 84)

Magic method, returns error messages

- return: Return found errors using a template
- access: public

string __toString ()

Documentation generated on Tue, 21 May 2013 17:19:53 +0200 by phpDocumentor 1.4.4