Warning: Invalid argument supplied for foreach() in /home/jihswbiz/public_html/t6.gwilt.org/refDox.php on line 212
Docs-dumpFunctions

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  dumpFunctions   Lines 351-400 (49 lines) file  utilsDebug.php   Last mod: Mon 2021-05-03 17:55:24

function dumpFunctions()
        {
#-k     debug
#-      list all functions in the code
#-      as of 4/4/12, this no longer prints, it just returns the string
        
global $logfcb;

        
$funs get_defined_functions();
        
$s '                                                  ';      # 50 spaces
        
$i 1;
        
$L 0;         # longest func name

        
if (isset($logfcb['log']['f']))
                {
                
$c 5# num cols
                
$sout "\n ======= User-defined functions ========";
                foreach ( 
$funs['user'] as $func )
                        if (
$L strlen($func)) $L strlen($func);

                foreach ( 
$funs['user'] as $func )
                        {
                        if      (
$i==1$sout .= "\n";
                        
$sout .= ' ' $func substr$s,0,$L-strlen($func));
                        
$i<$c $i++ : $i=1;
                        }
                }
        else
                {
                
$c 10;        # num cols
                
$sout '<table>';
                foreach ( 
$funs['user'] as $func )
                        {
                        if      (
$i==1$sout .= '<tr><td>' $func '</td>';
                        elseif  (
$i==$c$sout .= '<td>' $func '</td></tr>';
                        else            
$sout .= '<td>' $func '</td>';
                        
$i<$c $i++ : $i=1;
                        }

                if (
$i 1)
                        {
                        for (
$j=$i;$j<=$c;$j++) $sout .= '<td></td>';
                        
$sout .= '</tr>';
                        }

                
$sout .= '</table>';
                }

        return 
$sout;
        }

?>