Source for file Debug.class.php
Documentation is available at Debug.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* Creates a message and adds it to the Debugger
* @param string $mess message content
* @param string $file file name
* @param int $line line number
* @param string $func function/method name
* @param string $cls class name
public function add ($mess, $file, $line, $func=
null, $cls=
null);
* Adds a function to the restriction list
* @precondition function_exists ($func) or method_exists ($cls, $func)
* @precondition !isRestrictedFunction ($func, $cls)
* @param string $func function name
* @param string $cls class name
* Adds a class to the restriction list
* @precondition is_class ($cls)
* @precondition !isRestrictedClass ($cls)
* @param string $cls class name
* Adds a file to the restriction list
* @precondition file_exists ($file)
* @precondition $start < $end
* @precondition !isRestrictedFile ($file, $start, $end)
* @param string $file file name
* @param int $start start line
* @param int $end end line
* Resets all the restrictions
* @postcondition $_functions, $_classes, $_files = array ()
* Resets the Debug messages
* @postcondition setTime ()
* @postcondition $_messages = array ()
public function reset ();
* @postcondition $_active = true
* Deactivates the Debugger
* @postcondition $_active = false
* Set the mode to Inclusive
* @postcondition $_inclusive = true
* Sets the mode to Exclusive
* @postcondition $_inclusive = false
* Returns all the messages of the Debugger
* Returns the time stamp when the Debugger was started
* Returns if the Debug mode is active
* Returns if the restrictions are inclusive
* Returns if the function is restricted
* @param string $func function name
* @param string $cls class name
* Returns if the class is restricted
* @param string $cls class name
* Returns if the file is restricted
* @param string $file file name
* @param int $line line number