Overview  Package  Tree cmsdAm 0.8

cmsdAm

Class cmsdam_debug

cmsdAm.cmsdam_debug

class cmsdam_debug

This is the cmsdAm debug class.

You can use it in your templates to print a debug line with a level of debuging. If the debuging level is less or equal to the configuration parameter LOG_debuglevel then the line is printed. You can use the CSS class .debug to make changes to the format of the text.

Class instance: $cms->debug

Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>

Field Summary
public var$conf

You should not use this variable from your section.

Method Summary
public booleandebug_write

This api method write debug strings on html.

Field Detail

conf

public var $conf

You should not use this variable from your section.

Method Detail

debug_write()

public boolean debug_write(int level,
                           str text)

This api method write debug strings on html.

You can use $level for the debuging level and $test for the string to print. If the debug is off it returns false. To set debugging off please take a look at the cmsdam_conf class for the correct parameter to set in the configuration file.

Parameters:
level - This is the debuging level of your string
text - This is the debuging string you want to print to your section
Author:
dAm2K (Dino Ciuffetti) <dam2k@users.sourceforge.net>
Returns:
True on debugging actions, False if debug is off

Overview  Package  Tree cmsdAm 0.8