Public Member Functions | |
start () | |
getTotalTime () | |
Protected Member Functions | |
_log ($sClass, $sFnc) | |
_startMonitor () | |
_stopMonitor ($blIsCache=false, $blIsCached=false, $sViewID=null, $aViewData=array()) | |
_executeMaintenanceTasks () | |
_process ($sClass, $sFunction) | |
_initializeViewObject ($sClass, $sFunction) | |
_canExecuteFunction ($oClass, $sFunction) | |
_getFormattedErrors () | |
_render ($oViewObject) | |
_getOutputManager () | |
_output ($sOutput) | |
_getErrors () | |
_runOnce () | |
_isDebugMode () | |
_handleSystemException ($oEx) | |
_handleCookieException ($oEx) | |
_handleAccessRightsException ($oEx) | |
_handleDbConnectionException ($oEx) | |
_handleBaseException ($oEx) | |
_getControllerToLoad () | |
Protected Attributes | |
$_dTimeStart = null | |
$_dTimeEnd = null | |
$_aErrors = null | |
$_oOutput = null | |
$_oCache = null |
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 313 of file oxshopcontrol.php.
oxShopControl._executeMaintenanceTasks | ( | ) | [protected] |
Executes regular maintenance functions..
Definition at line 194 of file oxshopcontrol.php.
oxShopControl._getControllerToLoad | ( | ) | [protected] |
Returns controller class which should be loaded.
Definition at line 600 of file oxshopcontrol.php.
oxShopControl._getErrors | ( | ) | [protected] |
oxShopControl._getFormattedErrors | ( | ) | [protected] |
format error messages from _getErrors and return as array
Definition at line 332 of file oxshopcontrol.php.
oxShopControl._getOutputManager | ( | ) | [protected] |
oxShopControl._handleAccessRightsException | ( | $ | oEx | ) | [protected] |
R&R handling -> redirect to error msg, also, can call _process again, specifying error handler view class
$oEx |
Definition at line 559 of file oxshopcontrol.php.
oxShopControl._handleBaseException | ( | $ | oEx | ) | [protected] |
Catching other not cought exceptions.
oxException | $oEx |
Definition at line 586 of file oxshopcontrol.php.
oxShopControl._handleCookieException | ( | $ | oEx | ) | [protected] |
$oEx |
Definition at line 545 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 569 of file oxshopcontrol.php.
oxShopControl._handleSystemException | ( | $ | oEx | ) | [protected] |
Shows exceptionError page. possible reason: class does not exist etc. --> just redirect to start page.
$oEx |
Definition at line 529 of file oxshopcontrol.php.
oxShopControl._initializeViewObject | ( | $ | sClass, | |
$ | sFunction | |||
) | [protected] |
initialize and return view object
string | $sClass view name | |
string | $sFunction function name |
Definition at line 286 of file oxshopcontrol.php.
oxShopControl._isDebugMode | ( | ) | [protected] |
oxShopControl._log | ( | $ | sClass, | |
$ | sFnc | |||
) | [protected] |
Logs user performad actions to DB. Skips action loggin if it's search engine.
string | $sClass Name of class | |
srring | $sFnc Name of executed class method |
Definition at line 86 of file oxshopcontrol.php.
oxShopControl._output | ( | $ | sOutput | ) | [protected] |
Outputs passed data
string | $sOutput data to output |
Definition at line 431 of file oxshopcontrol.php.
oxShopControl._process | ( | $ | sClass, | |
$ | sFunction | |||
) | [protected] |
Initiates object (object.init()), executes passed function (oxShopControl.executeFunction(), if method returns some string - will redirect page and will call another function according to returned parameters), renders object (object.render()). Performs output processing oxOutput.ProcessViewArray(). Passes template variables to template engine witch generates output. Output is additionally processed (oxOutput.Process()), fixed links according search engines optimization rules (configurable in Admin area). Finally echoes the output.
string | $sClass Name of class | |
string | $sFunction Name of function |
Definition at line 216 of file oxshopcontrol.php.
oxShopControl._render | ( | $ | oViewObject | ) | [protected] |
render oxView object
oxView | $oViewObject view object to render |
Definition at line 354 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
Definition at line 460 of file oxshopcontrol.php.
oxShopControl._startMonitor | ( | ) | [protected] |
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 135 of file oxshopcontrol.php.
oxShopControl.getTotalTime | ( | ) |
Returns the differnece between stored profiler end time and start time. Works only after _stopMonitor() is called, otherwise returns 0.
Definition at line 180 of file oxshopcontrol.php.
oxShopControl.start | ( | ) |
Main shop manager, that sets shop status, executes configuration methods. Executes oxShopControl._runOnce(), if needed sets default class (according to admin or regular activities).
Session variables: actshop
Definition at line 54 of file oxshopcontrol.php.
oxShopControl.$_aErrors = null [protected] |
Definition at line 31 of file oxshopcontrol.php.
oxShopControl.$_dTimeEnd = null [protected] |
Definition at line 22 of file oxshopcontrol.php.
oxShopControl.$_dTimeStart = null [protected] |
Definition at line 15 of file oxshopcontrol.php.
oxShopControl.$_oCache = null [protected] |
Definition at line 42 of file oxshopcontrol.php.
oxShopControl.$_oOutput = null [protected] |
Definition at line 40 of file oxshopcontrol.php.