/** * Handles the request. * Create installation timestamp if empty (at first software launch) * * @return string */ public function handleRequest() { if (empty(\XLite\Core\Config::getInstance()->Version->timestamp)) { \XLite\Core\Database::getRepo('XLite\\Model\\Config')->createOption(array('category' => 'Version', 'name' => 'timestamp', 'value' => time())); } parent::handleRequest(); }
/** * Handles the request. Parses the request variables if necessary. Attempts to call the specified action function * * @return void */ public function handleRequest() { $request = \XLite\Core\Request::getInstance(); foreach ($this->getAJAXParamsTranslationTable() as $ajaxParam => $requestParam) { if (!empty($request->{$ajaxParam})) { $request->{$requestParam} = $request->{$ajaxParam}; $this->set($requestParam, $request->{$ajaxParam}); } } parent::handleRequest(); }
/** * Handles the request. * Parses the request variables if necessary. Attempts to call the specified action function * * @return void */ public function handleRequest() { if ($this->checkAccess() && \XLite\Core\Request::getInstance()->help) { $this->printContent($this->getHelp()); } else { set_time_limit(0); $this->actionTime = microtime(true); \XLite\Core\Session::getInstance(); parent::handleRequest(); if (!$this->pureOutput) { $duration = microtime(true) - $this->actionTime; $micro = $duration - floor($duration); $this->printContent(PHP_EOL . 'Execution time: ' . gmdate('H:i:s', floor($duration)) . '.' . sprintf('%04d', $micro * 10000) . ' sec.' . PHP_EOL); } } }
/** * Handles the request * * @return void */ public function handleRequest() { if (!$this->checkStorefrontAccessability()) { $this->closeStorefront(); } // Save initial cart fingerprint $this->initialCartFingerprint = $this->getCart()->getEventFingerprint(); return parent::handleRequest(); }
/** * Handles the request * * @return void */ public function handleRequest() { if (!$this->checkStorefrontAccessibility()) { $this->closeStorefront(); } if (!$this->isServiceController()) { // Save initial cart fingerprint $this->initialCartFingerprint = $this->getCart()->getEventFingerprint($this->getCartFingerprintExclude()); } parent::handleRequest(); }
/** * Handles the request to admin interface * * @return void */ public function handleRequest() { // Check if user is logged in and has a right access level if (!$this->isPublicZone() && !\XLite\Core\Auth::getInstance()->isAuthorized($this)) { \XLite\Core\Session::getInstance()->lastWorkingURL = $this->get('url'); $this->redirect($this->buildURL('login')); } else { if (isset(\XLite\Core\Request::getInstance()->no_https)) { \XLite\Core\Session::getInstance()->no_https = true; } parent::handleRequest(); } }
/** * Handles the request. * Parses the request variables if necessary. Attempts to call the specified action function * * @return void */ public function handleRequest() { RegistrationScheduler::getInstance()->registerIfScheduled(); parent::handleRequest(); }