modules/Trackers/TrackerManager.php
\TrackerManager
Properties
Methods
_getMonitor(
$name
=
'', $monitorId
=
'', $metadata
=
'', $store
=
''
)
:
void
Name | Type | Description |
---|---|---|
$name | ||
$monitorId | ||
$metadata | ||
$store |
getDisabledMonitors(
)
:
Array
getDisabledMonitors Returns an Array of Monitor's name(s) that hhave been set to disabled in the Administration section.
Type | Description |
---|---|
Array | of disabled Monitor's name(s) that hhave been set to disabled in the Administration section. |
getInstance(
)
:
void
getInstance Singleton method to return static instance of TrackerManager
- Returns
- static TrackerManager instance
getMonitor(
\$name $name
)
:
\Monitor
getMonitor This method returns a Monitor instance based on the monitor name.
Name | Type | Description |
---|---|---|
$name | \$name | The String value of the monitor's name to retrieve |
Type | Description |
---|---|
\Monitor | instance corresponding to name or a BlankMonitor instance if one could not be found |
getMonitorId(
)
:
void
getMonitorId Returns the monitor id associated with this TrackerManager instance
- Returns
- String id value
isPaused(
)
:
boolean
isPaused This function returns the current value of the private paused variable.
The result indicates whether or not the TrackerManager is paused.
Type | Description |
---|---|
boolean | value indicating whether or not TrackerManager instance is paused. |
pause(
)
:
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();
save(
)
:
void
save This method handles saving the monitors and their metrics to the mapped Store implementations
saveMonitor(
$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
Name | Type | Description |
---|---|---|
$monitor | ||
$flush | ||
$ignoreDisabled |
setDisabledMonitors(
array $disabledMonitors
)
:
void
Set the disabled monitors
Name | Type | Description |
---|---|---|
$disabledMonitors | array |
setup(
)
:
void
setup This is a private method used to load the configuration settings whereby monitors may be disabled via the Admin settings interface
unPause(
)
:
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();
unsetMonitor(
$monitor
)
:
void
unsetMonitor Method to unset the monitor so that it will not be saved
Name | Type | Description |
---|---|---|
$monitor |