Ejemplo n.º 1
0
 /**
  * Will return the content generated by the KRUMO plugin. We use the KRUMO to automatically dump the variables generat @ run-time,
  * when an error occured to help the develper quickly debug some of it's variables. This helps him skip some var_dump () actions
  * just to check the content of a variable, which we can do with just a mouse-click in the echoed browser error-screen;
  *
  * @return S Catched Krumo contented, parsed by the KRUMO plugin, for error/variable dumping
  * @author Catalin Z. Alexandru <*****@*****.**>
  * @copyright Under the terms of the GNU General Public License v3
  * @version $Id: 08_ERR.php 313 2009-10-09 13:27:52Z catalin.zamfir $
  * @since Version 1.0
  * @access private
  * @static
  * @final
  */
 private static final function getKrumoContent()
 {
     // Determine if we can KRUMO, only if the ERR has passed;
     // If _GET instanceof A, means that the our URL parser has loaded;
     if (isset($_GET)) {
         if ($_GET instanceof A) {
             // Execute the KRUMO Framework PLUGIN;
             // Wished we could've made an object out of Krumo, but we will call it statically ...
             krumo::get();
             krumo::post();
             krumo::session();
             krumo::cookie();
             krumo::headers();
             krumo::includes();
             krumo::server();
             krumo::env();
             krumo::conf();
             krumo::extensions();
             krumo::interfaces();
             krumo::path();
             // Get its content;
             $catchedKrumoContent = self::getContentFromOutputStream();
             // Save it, and then clean the stream again;
             self::discardOutputStream(new B(TRUE));
             // Yey! It's over!
             return $catchedKrumoContent;
         }
     }
 }