OXID eShop CE
6.1.5
|
Public Member Functions | |
__construct () | |
start ($controllerKey=null, $function=null, $parameters=null, $viewsChain=null) | |
getTotalTime () | |
Protected Member Functions | |
_getStartController () | |
_getFrontendStartController () | |
getStartControllerKey () | |
resolveControllerClass ($controllerKey) | |
getFrontendStartControllerKey () | |
_process ($class, $function, $parameters=null, $viewsChain=null) | |
_executeMaintenanceTasks () | |
executeAction ($view, $functionName) | |
formOutput ($view) | |
sendAdditionalHeaders ($view) | |
_initializeViewObject ($class, $function, $parameters=null, $viewsChain=null) | |
onViewCreation ($view) | |
_canExecuteFunction ($view, $function) | |
_getFormattedErrors ($controllerName) | |
_render ($view) | |
_getOutputManager () | |
_getErrors ($currentControllerName) | |
_runOnce () | |
_getErrorReportingLevel () | |
_isDebugMode () | |
_startMonitor () | |
_stopMonitor ($isCallForCache=false, $isCached=false, $viewId=null, $viewData=[], $view=null) | |
stopMonitoring ($view) | |
formMonitorMessage ($view) | |
_handleSystemException ($exception) | |
handleRoutingException ($exception) | |
_handleCookieException ($exception) | |
handleDatabaseException (\OxidEsales\Eshop\Core\Exception\DatabaseException $exception) | |
_handleBaseException ($exception) | |
logException (\Exception $exception) | |
reportDatabaseConnectionException (DatabaseConnectionException $exception) | |
messageWasSentWithinThreshold () | |
sendOfflineWarning (\OxidEsales\Eshop\Core\Exception\StandardException $exception) | |
getControllerClass ($controllerKey) | |
Protected Attributes | |
$_blHandlerSet = null | |
$_blMainTasksExecuted = null | |
$_dTimeStart = null | |
$_dTimeEnd = null | |
$_aErrors = null | |
$_aAllErrors = null | |
$_aControllerErrors = null | |
$_oOutput = null | |
$_oCache = null | |
$offlineWarningTimestampFile | |
Main shop actions controller. Processes user actions, logs them (if needed), controls output, redirects according to processed methods logic. This class is initialized from index.php
OxidEsales\EshopCommunity\Core\ShopControl::__construct | ( | ) |
ShopControl constructor.
|
protected |
Check if method can be executed.
FrontendController | $view | View object to check if its method can be executed. |
string | $function | Method to check if it can be executed. |
|
protected |
Executes regular maintenance functions..
|
protected |
Returns error reporting level. Returns disabled error logging if server is misconfigured #2015 E_NONE replaced with 0.
|
protected |
Return page errors array.
string | $currentControllerName | Class name |
|
protected |
Format error messages from _getErrors and return as array.
string | $controllerName | a class name |
|
protected |
Returns which controller should be loaded at shop start. Check whether we have to display mall start screen or not.
|
protected |
Return output handler.
|
protected |
Returns controller class which should be loaded.
|
protected |
Handling other not caught exceptions.
\OxidEsales\Eshop\Core\Exception\StandardException | $exception |
|
protected |
Redirect to start page, in debug mode shows error message.
\OxidEsales\Eshop\Core\Exception\StandardException | $exception | Exception |
|
protected |
Shows exceptionError page. possible reason: class does not exist etc. --> just redirect to start page.
\OxidEsales\Eshop\Core\Exception\StandardException | $exception |
|
protected |
Initialize and return view object.
string | $class | View class |
string | $function | Function name |
array | $parameters | Parameters array |
array | $viewsChain | Array of views names that should be initialized also |
|
protected |
Checks if shop is in debug mode.
|
protected |
Initiates object (object::init()), executes passed function (\OxidEsales\Eshop\Core\ShopControl::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 \OxidEsales\Eshop\Core\Output::ProcessViewArray(). Passes template variables to template engine witch generates output. Output is additionally processed (\OxidEsales\Eshop\Core\Output::Process()), fixed links according search engines optimization rules (configurable in Admin area). Finally echoes the output.
string | $class | Class name |
string | $function | Name of function |
array | $parameters | Parameters array |
array | $viewsChain | Array of views names that should be initialized also |
|
protected |
Render BaseController object.
FrontendController | $view | view object to render |
|
protected |
This function is only executed one time here we perform checks if we only need once per session.
|
protected |
Starts resource monitor.
|
protected |
Stops resource monitor, summarizes and outputs values.
bool | $isCallForCache | Is content cache |
bool | $isCached | Is content cached |
string | $viewId | View ID |
array | $viewData | View data |
FrontendController | $view | View object |
|
protected |
Executes provided function on view object. If this function can not be executed (is protected or so), oxSystemComponentException exception is thrown.
FrontendController | $view | |
string | $functionName |
oxSystemComponentException |
|
protected |
Forms message for displaying monitoring information on the bottom of the page.
FrontendController | $view |
|
protected |
Forms output from view object.
FrontendController | $view |
|
protected |
Get controller class from key. Fallback is to use key as class if no match can be found.
string | $controllerKey |
|
protected |
Returns id of controller that should be loaded at shop start. Check whether we have to display mall start screen or not.
|
protected |
Returns class id of controller which should be loaded. When in doubt returns default start controller class.
OxidEsales\EshopCommunity\Core\ShopControl::getTotalTime | ( | ) |
Returns the difference between stored profiler end time and start time. Works only after _stopMonitor() is called, otherwise returns 0.
|
protected |
Handle database exceptions There is still space for improving this as a similar exception handling for database exceptions may be done in \OxidEsales\EshopCommunity\Core\Config::init() and the current method may not be executed
\OxidEsales\Eshop\Core\Exception\DatabaseException | $exception | Exception to handle |
|
protected |
Handle routing exception, which is thrown, if the class name for the requested controller id could not be resolved.
RoutingException | $exception |
|
protected |
Log an exception.
This method forms part of the exception handling process. Any further exceptions must be caught.
\Exception | $exception |
|
protected |
Return true, if a message was already sent within a given threshold.
This method forms part of the exception handling process. Any further exceptions must be caught.
|
protected |
Event for any actions during view creation.
FrontendController | $view |
|
protected |
Notify the shop owner about database connection problems.
This method forms part of the exception handling process. Any further exceptions must be caught.
DatabaseConnectionException | $exception | Database connection exception to report |
|
protected |
Returns class id of controller which should be loaded. When in doubt returns default start controller class.
string | $controllerKey | Controller id |
RoutingException |
|
protected |
Method for sending any additional headers on every page requests.
FrontendController | $view |
|
protected |
Send an offline warning to the shop owner. Currently an email is sent to the email address configured as 'sAdminEmail' in the eShop config file.
This method forms part of the exception handling process. Any further exceptions must be caught.
StandardException | $exception |
OxidEsales\EshopCommunity\Core\ShopControl::start | ( | $controllerKey = null , |
|
$function = null , |
|||
$parameters = null , |
|||
$viewsChain = null |
|||
) |
Main shop manager, that sets shop status, executes configuration methods. Executes \OxidEsales\Eshop\Core\ShopControl::_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 | $controllerKey | Key of the controller class to be processed |
string | $function | Function name |
array | $parameters | Parameters array |
array | $viewsChain | Array of views names that should be initialized also |
|
protected |
Stops resource monitor, summarizes and outputs values.
FrontendController | $view | View object |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |