OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
oxSystemEventHandler Class Reference

Public Member Functions

 setOnlineLicenseCheck (oxOnlineLicenseCheck $oOnlineLicenseCheck)
 setOnlineModuleVersionNotifier (oxOnlineModuleVersionNotifier $oOnlineModuleVersionNotifier)
 onAdminLogin ()
 onShopStart ()

Protected Member Functions

 _isSendingShopDataEnabled ()
 _sendShopInformation ()
 _getConfig ()

Private Member Functions

 _needToSendShopInformation ()
 _getNextCheckTime ()
 _getCheckTime ()
 _validateOffline ()
 _needValidateShop ()

Private Attributes

 $_oOnlineModuleVersionNotifier = null
 $_oOnlineLicenseCheck = null

Detailed Description

Contains system event handler methods

Definition at line 9 of file oxsystemeventhandler.php.

Member Function Documentation

oxSystemEventHandler::_getCheckTime ( )
private

Returns time (hour minutes seconds) when to perform license check. Create if does not exist.

Returns
string time formed as H:i:s

Definition at line 215 of file oxsystemeventhandler.php.

oxSystemEventHandler::_getConfig ( )
protected

Return oxConfig from registry.

Returns
oxConfig

Definition at line 266 of file oxsystemeventhandler.php.

oxSystemEventHandler::_getNextCheckTime ( )
private

Return time stamp when shop was checked last with white noise from config.

Returns
int

Definition at line 189 of file oxsystemeventhandler.php.

oxSystemEventHandler::_isSendingShopDataEnabled ( )
protected

Checks if sending shop data is enabled.

Returns
bool

Definition at line 146 of file oxsystemeventhandler.php.

oxSystemEventHandler::_needToSendShopInformation ( )
private

Check if need to send information. We will not send information on each request due to possible performance drop.

Returns
bool

Definition at line 173 of file oxsystemeventhandler.php.

oxSystemEventHandler::_needValidateShop ( )
private

Performance - run these checks only each 5 times statistically.

Returns
bool

Definition at line 257 of file oxsystemeventhandler.php.

oxSystemEventHandler::_sendShopInformation ( )
protected

Sends shop information to oxid servers.

Definition at line 158 of file oxsystemeventhandler.php.

oxSystemEventHandler::_validateOffline ( )
private

Check if shop valid. Redirect offline if not valid.

Definition at line 248 of file oxsystemeventhandler.php.

oxSystemEventHandler::onAdminLogin ( )

onAdminLogin() is called on every successful login to the backend

Definition at line 115 of file oxsystemeventhandler.php.

oxSystemEventHandler::onShopStart ( )

Perform shop startup related actions, like license check.

Definition at line 129 of file oxsystemeventhandler.php.

oxSystemEventHandler::setOnlineLicenseCheck ( oxOnlineLicenseCheck  $oOnlineLicenseCheck)

OLC dependency setter

Parameters
oxOnlineLicenseCheck$oOnlineLicenseCheck

Definition at line 27 of file oxsystemeventhandler.php.

oxSystemEventHandler::setOnlineModuleVersionNotifier ( oxOnlineModuleVersionNotifier  $oOnlineModuleVersionNotifier)

oxOnlineModuleVersionNotifier dependency setter

Parameters
oxOnlineModuleVersionNotifier$oOnlineModuleVersionNotifier

Definition at line 74 of file oxsystemeventhandler.php.

Member Data Documentation

oxSystemEventHandler::$_oOnlineLicenseCheck = null
private

oxOnlineLicenseCheck

Definition at line 20 of file oxsystemeventhandler.php.

oxSystemEventHandler::$_oOnlineModuleVersionNotifier = null
private

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