/** * handleRequest * * @return void */ public function handleRequest() { if ($this->getModuleID() && 'CDev\\AmazonS3Images' == $this->getModule()->getActualName() && \XLite\Core\Request::getInstance()->isGet() && !\XLite\Core\TopMessage::getInstance()->getPreviousMessages()) { $this->checkAmazonS3Settings(); } parent::handleRequest(); }
/** * Get pages templates * * @return array */ protected function getPageTemplates() { $list = parent::getPageTemplates(); foreach ($this->settings->getAllPages() as $page => $title) { $list[$page] = 'modules/CDev/XPaymentsConnector/settings/settings.tpl'; } if ($this->isConfigured()) { unset($list[$this->settings->getPage('PAGE_WELCOME')]); } return $list; }