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

Public Member Functions

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

Protected Member Functions

 _validateOnline ()
 _isSendingShopDataEnabled ()
 _sendShopInformation ()
 _getConfig ()
 _getServerProcessor ()

Private Member Functions

 _needToSendShopInformation ()
 _getNextCheckTime ()
 _updateNextCheckTime ()
 _getCheckTime ()
 _getCurrentTime ()
 _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 227 of file oxsystemeventhandler.php.

oxSystemEventHandler::_getConfig ( )
protected

Return oxConfig from registry.

Returns
oxConfig

Definition at line 278 of file oxsystemeventhandler.php.

oxSystemEventHandler::_getCurrentTime ( )
private

Return current time - time stamp.

Returns
int

Definition at line 247 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 201 of file oxsystemeventhandler.php.

oxSystemEventHandler::_getServerProcessor ( )
protected

Gets server processor.

Returns
oxServerProcessor

Definition at line 288 of file oxsystemeventhandler.php.

oxSystemEventHandler::_isSendingShopDataEnabled ( )
protected

Checks if sending shop data is enabled.

Returns
bool

Definition at line 158 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 185 of file oxsystemeventhandler.php.

oxSystemEventHandler::_needValidateShop ( )
private

Performance - run these checks only each 5 times statistically.

Returns
bool

Definition at line 269 of file oxsystemeventhandler.php.

oxSystemEventHandler::_sendShopInformation ( )
protected

Sends shop information to oxid servers.

Definition at line 170 of file oxsystemeventhandler.php.

oxSystemEventHandler::_updateNextCheckTime ( )
private

Update when shop was checked last time with white noise. White noise is used to separate call time for different shop.

Definition at line 210 of file oxsystemeventhandler.php.

oxSystemEventHandler::_validateOffline ( )
private

Check if shop valid. Redirect offline if not valid.

Definition at line 260 of file oxsystemeventhandler.php.

oxSystemEventHandler::_validateOnline ( )
protected

Check if shop is valid online.

Definition at line 139 of file oxsystemeventhandler.php.

oxSystemEventHandler::getOnlineLicenseCheck ( )

OLC dependency getter

Returns
oxOnlineLicenseCheck

Definition at line 37 of file oxsystemeventhandler.php.

oxSystemEventHandler::getOnlineModuleVersionNotifier ( )

oxOnlineModuleVersionNotifier dependency getter

Returns
oxOnlineModuleVersionNotifier

Definition at line 84 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: