modules/Trackers/TrackerManager.php

Show: inherited
Table of Contents

\TrackerManager

Package:

Properties

Propertyprivate  $disabledMonitors= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $instance= ''
static
Details
Type
n/a
Propertyprivate  $metadata= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $monitor_id= ''
static
Details
Type
n/a
Propertyprivate  $monitors= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $paused= 'false'
static
Default valuefalseDetails
Type
n/a

Methods

methodprivateTrackerManager( ) : void

Constructor for TrackerManager. Declared private for singleton pattern.

methodprivate_getMonitor(  $name = '',  $monitorId = '',  $metadata = '',  $store = '' ) : void

Parameters
Name Type Description
$name
$monitorId
$metadata
$store
methodpublicgetDisabledMonitors( ) : Array

getDisabledMonitors Returns an Array of Monitor's name(s) that hhave been set to disabled in the Administration section.

Returns
Type Description
Array of disabled Monitor's name(s) that hhave been set to disabled in the Administration section.
methodpublicgetInstance( ) : void
static

getInstance Singleton method to return static instance of TrackerManager

Details
Returns
static TrackerManager instance  
methodpublicgetMonitor( \$name $name ) : \Monitor

getMonitor This method returns a Monitor instance based on the monitor name.

Parameters
Name Type Description
$name \$name

The String value of the monitor's name to retrieve

Returns
Type Description
\Monitor instance corresponding to name or a BlankMonitor instance if one could not be found
methodpublicgetMonitorId( ) : void

getMonitorId Returns the monitor id associated with this TrackerManager instance

Details
Returns
String id value  
methodpublicisPaused( ) : boolean

isPaused This function returns the current value of the private paused variable.

The result indicates whether or not the TrackerManager is paused.

Returns
Type Description
boolean value indicating whether or not TrackerManager instance is paused.
methodpublicpause( ) : void

pause This function is to be called by a client in order to pause tracking through the lifetime of a Request.

Tracking can be started again by calling unPauseTracking

Usage: TrackerManager::getInstance()->pauseTracking();

methodpublicsave( ) : void

save This method handles saving the monitors and their metrics to the mapped Store implementations

methodpublicsaveMonitor(  $monitor,  $flush = true,  $ignoreDisabled = false ) : void

saveMonitor Saves the monitor instance and then clears it If ignoreDisabled is set the ignore the fact of this monitor being disabled

Parameters
Name Type Description
$monitor
$flush
$ignoreDisabled
methodpublicsetDisabledMonitors( array $disabledMonitors ) : void

Set the disabled monitors

Parameters
Name Type Description
$disabledMonitors array
methodpublicsetMonitorId(  $id ) : void

Parameters
Name Type Description
$id
methodprivatesetup( ) : void

setup This is a private method used to load the configuration settings whereby monitors may be disabled via the Admin settings interface

methodpublicunPause( ) : void

unPause This function is to be called by a client in order to unPause tracking through the lifetime of a Request.

Tracking can be paused by calling pauseTracking

  • Usage: TrackerManager::getInstance()->unPauseTracking();
methodpublicunsetMonitor(  $monitor ) : void

unsetMonitor Method to unset the monitor so that it will not be saved

Parameters
Name Type Description
$monitor
methodpublicunsetMonitors( ) : void

unsetMonitors Function to unset all Monitors loaded for a TrackerManager instance

Documentation was generated by DocBlox 0.18.1.