EndRequestBehavior Class Reference

Public Member Functions

 attach ($owner)
 handleSaveGlobalStateCheck ($event)
 handleEndLogRouteEvents ($event)
 handleResolveRedBeanQueriesToFile ($event)
 handleEndRequest ($event)
 handleGamification ($event)
 handleJobQueue ($event)
 handleSetLoggerAutoDumpAndAutoFlush ($event)

Detailed Description

Called when Yii::app->end(0, false) is called. You should always call end with the second parameter set to false. This behavior exists so that during unit tests this behavior can be switched for a behavior that raises an exception instead of exiting.

Definition at line 43 of file EndRequestBehavior.php.


Member Function Documentation

handleGamification ( event  ) 

Process any points that need to be tabulated based on scoring that occurred during the request. Use of areAllClassesImported() is to ensure the available classes are imported to run this end request. If not, then an error has occurred very early in execution and these classes are not required to run. Does not run if there is already an error as this can cause problems if an additional error is generated during this execution.

Parameters:
CEvent $event

Definition at line 119 of file EndRequestBehavior.php.

handleJobQueue ( event  ) 

Use of areAllClassesImported() is to ensure the available classes are imported to run this end request. If not, then an error has occurred very early in execution and these classes are not required to run. Does not run if there is already an error as this can cause problems if an additional error is generated during this execution.

Definition at line 139 of file EndRequestBehavior.php.

handleSetLoggerAutoDumpAndAutoFlush ( event  ) 

There is issue with Yii framework that does not log events that are happen in EndRequestBehavior What we did here is that we set to automatically flash error messages during EndRequest evens and dump them to error file. This shouldn't cause any perfomanse issue, because it will affect only OnEndRequest events.

Parameters:
$event 

Definition at line 155 of file EndRequestBehavior.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Jul 19 07:10:59 2019