Source for file Function.class.php

Documentation is available at Function.class.php

  1. <?php
  2. /**
  3.  * Gumbo Library Framework
  4.  *
  5.  * LICENSE
  6.  * This library is being released under the terms of the New BSD License.  A
  7.  * copy of the license is packaged with the software (LICENSE.txt).  If no
  8.  * copy is found, a copy of the license template can be found at:
  9.  * http://www.opensource.org/licenses/bsd-license.php
  10.  * 
  11.  * @category Gumbo
  12.  * @package Debug
  13.  * @copyright Copyright (c) 2007, iBayou, Michael Luster
  14.  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
  15.  * @author Michael Luster <mluster79@yahoo.com>
  16.  * @link http://sourceforge.net/projects/phpgumbo
  17.  * @version 0.0.1
  18.  */
  19.  
  20. /**
  21.  * Debug Server Report - Functions
  22.  *
  23.  * @category Gumbo
  24.  * @package Debug
  25.  * @copyright Copyright (c) 2007, iBayou, Michael Luster
  26.  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
  27.  * @author Michael Luster <mluster79@yahoo.com>
  28.  * @link http://sourceforge.net/projects/phpgumbo
  29.  * @desc Debug Server Report - Functions
  30.  * @version 0.0.1
  31.  */
  32.  
  33. gumbo_load ("Interface_Debug_Server_Report");
  34.  
  35. class Gumbo_Debug_Server_Function implements Gumbo_Interface_Debug_Server_Report {
  36.     
  37.     /**
  38.      * Runs the Report
  39.      * @return string 
  40.      */
  41.     public function run ({
  42.         $txt .= "<div class=\"debug\">\n";
  43.         $txt .= "\t<ul>Defined Functions\n";
  44.         foreach (get_defined_functions (as $key=>$val{
  45.             if ($key != "user"continue}
  46.             foreach ($val as $func{
  47.                 $txt .= "\t\t<li>{$func}</li>\n";
  48.             }
  49.         }
  50.         $txt .= "\t</ul>\n";
  51.         $txt .= "</div>\n\n";
  52.         
  53.         return $txt;
  54.     }
  55.     
  56. }
  57.  
  58. ?>