Inheritance diagram for oxShopControl:
Collaboration diagram for oxShopControl:Main shop actions controller. Processes user actions, logs them (if needed), controlls output, redirects according to processed methods logic. This class is initalized from index.php
Definition at line 8 of file oxshopcontrol.php.
| oxShopControl._canExecuteFunction | ( | $ | oClass, | |
| $ | sFunction | |||
| ) | [protected] |
Check if method can be executed.
| object | $oClass object to check if its method can be executed. | |
| string | $sFunction method to check if it can be executed. |
Definition at line 400 of file oxshopcontrol.php.
| oxShopControl._executeMaintenanceTasks | ( | ) | [protected] |
Executes regular maintenance functions..
Definition at line 267 of file oxshopcontrol.php.
| oxShopControl._getErrorReportingLevel | ( | ) | [protected] |
Returns error reporting level. Returns disabled error logging if server is misconfigured #2015 E_NONE replaced with 0.
Definition at line 580 of file oxshopcontrol.php.
| oxShopControl._getErrors | ( | $ | sCurrentControllerName | ) | [protected] |
return page errors array
| string | $sCurrentControllerName a class name |
Definition at line 517 of file oxshopcontrol.php.
| oxShopControl._getFormattedErrors | ( | $ | sControllerName | ) | [protected] |
format error messages from _getErrors and return as array
| string | $sControllerName a class name |
Definition at line 422 of file oxshopcontrol.php.
| oxShopControl._getFrontendMallStartController | ( | ) | [protected] |
Returns start controller class name for frontend mall. If no class specified, we need to change back to base shop
Definition at line 724 of file oxshopcontrol.php.
| oxShopControl._getFrontendStartController | ( | ) | [protected] |
Returns which controller should be loaded at shop start. Check whether we have to display mall start screen or not.
Definition at line 708 of file oxshopcontrol.php.
| oxShopControl._getOutputManager | ( | ) | [protected] |
| oxShopControl._getStartController | ( | ) | [protected] |
Returns controller class which should be loaded.
Definition at line 690 of file oxshopcontrol.php.
| oxShopControl._handleAccessRightsException | ( | $ | oEx | ) | [protected] |
R&R handling -> redirect to error msg, also, can call _process again, specifying error handler view class.
| oxException | $oEx Exception |
Definition at line 650 of file oxshopcontrol.php.
| oxShopControl._handleBaseException | ( | $ | oEx | ) | [protected] |
Catching other not caught exceptions.
| oxException | $oEx |
Definition at line 675 of file oxshopcontrol.php.
| oxShopControl._handleCookieException | ( | $ | oEx | ) | [protected] |
Redirect to start page, in debug mode shows error message.
| oxException | $oEx Exception |
Definition at line 637 of file oxshopcontrol.php.
| oxShopControl._handleDbConnectionException | ( | $ | oEx | ) | [protected] |
Shows exception message if debug mode is enabled, redirects otherwise.
| oxConnectionException | $oEx message to show on exit |
Definition at line 660 of file oxshopcontrol.php.
| oxShopControl._handleSystemException | ( | $ | oEx | ) | [protected] |
Shows exceptionError page. possible reason: class does not exist etc. --> just redirect to start page.
| oxException | $oEx |
Definition at line 620 of file oxshopcontrol.php.
| oxShopControl._initializeViewObject | ( | $ | sClass, | |
| $ | sFunction, | |||
| $ | aParams = null, |
|||
| $ | aViewsChain = null | |||
| ) | [protected] |
initialize and return view object
| string | $sClass view name | |
| string | $sFunction function name | |
| array | $aParams parameters array | |
| array | $aViewsChain array of views names that should be initialized also |
Reimplemented in oxWidgetControl.
Definition at line 371 of file oxshopcontrol.php.
| oxShopControl._isDebugMode | ( | ) | [protected] |
| oxShopControl._log | ( | $ | sClass, | |
| $ | sFnc | |||
| ) | [protected] |
Logs user performed actions to DB. Skips action logging if it's search engine.
| string | $sClass Name of class | |
| string | $sFnc Name of executed class method |
Definition at line 142 of file oxshopcontrol.php.
| oxShopControl._render | ( | $ | oViewObject | ) | [protected] |
render oxView object
| oxView | $oViewObject view object to render |
Definition at line 445 of file oxshopcontrol.php.
| oxShopControl._runOnce | ( | ) | [protected] |
This function is only executed one time here we perform checks if we only need once per session
Reimplemented in oxWidgetControl.
Definition at line 550 of file oxshopcontrol.php.
| oxShopControl._setDefaultExceptionHandler | ( | ) | [protected] |
Sets default exception handler. Ideally all exceptions should be handled with try catch and default exception should never be reached.
Definition at line 126 of file oxshopcontrol.php.
| oxShopControl._startMonitor | ( | ) | [protected] |
Starts resource monitor
Definition at line 178 of file oxshopcontrol.php.
| oxShopControl._stopMonitor | ( | $ | blIsCache = false, |
|
| $ | blIsCached = false, |
|||
| $ | sViewID = null, |
|||
| $ | aViewData = array() | |||
| ) | [protected] |
Stops resource monitor, summarizes and outputs values
| bool | $blIsCache Is content cache | |
| bool | $blIsCached Is content cached | |
| bool | $sViewID View ID | |
| array | $aViewData View data |
Definition at line 193 of file oxshopcontrol.php.
| oxShopControl.getTotalTime | ( | ) |
Returns the difference between stored profiler end time and start time. Works only after _stopMonitor() is called, otherwise returns 0.
Definition at line 253 of file oxshopcontrol.php.
| oxShopControl.start | ( | $ | sClass = null, |
|
| $ | sFunction = null, |
|||
| $ | aParams = null, |
|||
| $ | aViewsChain = null | |||
| ) |
Main shop manager, that sets shop status, executes configuration methods. Executes oxShopControl._runOnce(), if needed sets default class (according to admin or regular activities). Additionally its possible to pass class name, function name and parameters array to view, which will be executed.
| string | $sClass Class name | |
| string | $sFunction Function name | |
| array | $aParams Parameters array | |
| array | $aViewsChain Array of views names that should be initialized also |
Reimplemented in oxWidgetControl.
Definition at line 95 of file oxshopcontrol.php.
oxShopControl.$_aAllErrors = null [protected] |
Definition at line 56 of file oxshopcontrol.php.
oxShopControl.$_aControllerErrors = null [protected] |
Definition at line 65 of file oxshopcontrol.php.
oxShopControl.$_aErrors = null [protected] |
Definition at line 47 of file oxshopcontrol.php.
oxShopControl.$_blHandlerSet = null [protected] |
Reimplemented in oxWidgetControl.
Definition at line 17 of file oxshopcontrol.php.
oxShopControl.$_blMainTasksExecuted = null [protected] |
Reimplemented in oxWidgetControl.
Definition at line 24 of file oxshopcontrol.php.
oxShopControl.$_dTimeEnd = null [protected] |
Definition at line 38 of file oxshopcontrol.php.
oxShopControl.$_dTimeStart = null [protected] |
Definition at line 31 of file oxshopcontrol.php.
oxShopControl.$_oCache = null [protected] |
Definition at line 82 of file oxshopcontrol.php.
oxShopControl.$_oOutput = null [protected] |
Definition at line 75 of file oxshopcontrol.php.
1.7.1