Changeset 692

Show
Ignore:
Timestamp:
10/07/2007 06:32:27 PM (14 months ago)
Author:
PugFish
Message:

Added disable() method for profiler

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Profiler.php

    r663 r692  
    3434 
    3535                Log::add('debug', 'Profiler Library initialized'); 
     36        } 
     37 
     38        /** 
     39         * Disables the profiler for this page only, best used when profiler is autoloaded 
     40         * 
     41         * @access public 
     42         * @return void 
     43         */ 
     44        public function disable() 
     45        { 
     46                // Removes itself from the event queue 
     47                Event::clear('system.output', array($this, 'render')); 
    3648        } 
    3749