Configuration
Here I list some options you can set by the hli()-function. Note that you will find more
options if you look into the HLI_Config class, but these here are known to
work.
There is really no need to do any configuration as HLI is written and preconfigured to be used right away.
- bool
backtrace -
Switches whether the backtrace should be printed or not. Defaults to
true.hli('backtrace',false);hli('backtrace',true); - bool
return -
If
true,pre()andifpre()will return the HLI dump window code instead of printing it right away. Defaults tofalse.hli('return',true);hli('return',false); - int
maxDumpLevel -
Specifies how deep recursive dumps should work. The DB-plugin uses this
value multiplied by 10 to get the number of rows to dump. Defaults to
10.hli('maxDumpLevel',2);hli('maxDumpLevel',10); - bool
startWithHiddenBlocks -
If
true, recursive dumps will all be folded on page load except for the first level. Defaults tofalse.HLI('startWithHiddenBlocks',true);HLI('startWithHiddenBlocks',false); - bool
useOutputBuffering -
If
true, HLI will buffer the output of your code and will place its summary (the little symbol in the lower left corner of you browser window) before the</body>-tag (if there is one), so it doesn't break the validity of your XHTML. Defaults tofalse. -
IMPORTANT: Switching output buffering on and off will corrupt your
page! This is only ment to be turned on once.
hli('useOutputBuffering',true);
- string
quotesOnStrings -
Specify the type of quotation marks to be used on string dumps. Possible values
are
double,singleandnone. Note that dump plugins do not need to respect this option. Defaults tosingle.hli('quotesOnStrings','double');hli('quotesOnStrings','none');hli('quotesOnStrings','single'); - string
commonPath -
If not empty, this will be used as the common path that is cut-off from every
filepath-string. Defaults to the directory of the including file (the one that
called
HLI/init.php).$oldCommon = hli('commonPath');hli('commonPath','');hli('commonPath',$oldCommon); - bool
useCalledAtWithParamValues -
By default (
false), the breakpoint-function in the first line of dump-window headers shows the literal value of what you typed into that function. If you turn this on, it will be replaced by the value of that. This workes faster but is not as informative, as the value is what is dumped just below.hli('useCalledAtWithParamValues',true);hli('useCalledAtWithParamValues',false); - bool
validateXML -
This is for HLI developers only. It makes HLI significantly slower and will check
the generated XML before passing it to the output component. I will not accept
any plugins that break my XML Schema. On the other hand, if you write a plugin
that breaks validity for a good reason, it is very likely that I will not hesitate
to change the schema ...
hli('validateXML',true);hli('validateXML',false);