WP Profiler
Public Member Functions | Public Attributes | List of all members
WPProfiler\Core\Collectors\Hook Class Reference
Inheritance diagram for WPProfiler\Core\Collectors\Hook:
WPProfiler\Core\CollectorAbstract WPProfiler\Core\CollectorInterface

Public Member Functions

 build_report_filename ($parts)
 
 init ()
 
 get ($data=null)
 
 record_stop (&$item)
 
 start_timer ()
 
 is_hook_ignored ($hook)
 
 stop_timer ($data=null)
 
 enable ()
 
 disable ()
 
 get_current_hook ()
 
 update_current_hook_last_element ($name, $value)
 
 get_current_hook_last_element ($name)
 
 append_current_hook ($name, $value)
 
 ignore_hook ($hook)
 
 remove_ignored_hook ($hook)
 
- Public Member Functions inherited from WPProfiler\Core\CollectorAbstract
 __construct (Profiler $profiler)
 
 build_report_filename ($parts)
 
 init ()
 
 enable ()
 
 disable ()
 

Public Attributes

const BUILD_FILENAME_PRIORITY = 1
 
const NAME = 'hook'
 
- Public Attributes inherited from WPProfiler\Core\CollectorAbstract
const NAME = ''
 
const BUILD_FILENAME_PRIORITY = 0
 

Additional Inherited Members

- Protected Attributes inherited from WPProfiler\Core\CollectorAbstract
 $profiler
 
 $enabled = false
 

Member Function Documentation

WPProfiler\Core\Collectors\Hook::append_current_hook (   $name,
  $value 
)
WPProfiler\Core\Collectors\Hook::build_report_filename (   $parts)
Parameters
$parts
Returns
mixed
WPProfiler\Core\Collectors\Hook::disable ( )
Returns
mixed|void

Implements WPProfiler\Core\CollectorInterface.

WPProfiler\Core\Collectors\Hook::enable ( )
Returns
void

Implements WPProfiler\Core\CollectorInterface.

WPProfiler\Core\Collectors\Hook::get (   $data = null)
WPProfiler\Core\Collectors\Hook::get_current_hook ( )
Returns
array
WPProfiler\Core\Collectors\Hook::get_current_hook_last_element (   $name)
WPProfiler\Core\Collectors\Hook::ignore_hook (   $hook)
Parameters
string$hook
WPProfiler\Core\Collectors\Hook::init ( )
Returns
mixed|void

Implements WPProfiler\Core\CollectorInterface.

WPProfiler\Core\Collectors\Hook::is_hook_ignored (   $hook)
Parameters
$hook
Returns
bool
WPProfiler\Core\Collectors\Hook::record_stop ( $item)
Parameters
array$item
WPProfiler\Core\Collectors\Hook::remove_ignored_hook (   $hook)
Parameters
$hook
Returns
bool
WPProfiler\Core\Collectors\Hook::start_timer ( )
WPProfiler\Core\Collectors\Hook::stop_timer (   $data = null)
Parameters
null$data
Returns
null
WPProfiler\Core\Collectors\Hook::update_current_hook_last_element (   $name,
  $value 
)

Member Data Documentation

const WPProfiler\Core\Collectors\Hook::BUILD_FILENAME_PRIORITY = 1
const WPProfiler\Core\Collectors\Hook::NAME = 'hook'

The documentation for this class was generated from the following file: