Exemplo n.º 1
0
 /**
  * PHP_Debug default output function, first we finish the processes and
  * then a render object is created and its render method is invoked
  * 
  * The renderer used is set with the options, all the possible renderer
  * are in the directory Debug/Renderer/*.php
  * (not the files ending by '_Config.php')
  * 
  * @since V2.0.0 - 13 apr 2006
  * @see Debug_Renderer
  */
 public function render()
 {
     // Finish process
     $this->endTime = PHP_Debug::getMicroTimeNow();
     // Render output if we are allowed to
     if ($this->isAllowed()) {
         // Create render object and invoke its render function
         $renderer = PHP_Debug_Renderer::factory($this, $this->options);
         // Get required files here to have event all Debug classes
         $this->requiredFiles = get_required_files();
         // Call rendering
         return $renderer->render();
     }
 }
Exemplo n.º 2
0
 /**
  * setter of startTime
  *
  * @see pear bug http://pear.php.net/bugs/10919
  *
  * @since V2.1.2 - 04 may 2006
  */
 public function setStartTime($startTime = '')
 {
     $this->startTime = $startTime ? $startTime : PHP_Debug::getMicroTimeNow();
 }