TwistPHP Documentation

recordEvent

File path: dist/twist/Twist.php
Namespace: \
Extends:

recordEventRecord events on for the current page load can be logged and a time-line produced, helps with debugging.
The TwistPHP event recorder only records and outputs events if DEVELOPMENT_MODE and DEVELOPMENT_EVENT_RECORDER settings are set to true|1.

Parameters

Name Type Description
$strEventNamestringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strEventName 'foo';

//Call the function recordEvent with the example vars
Twist::Twist() -> recordEvent($strEventName);