示例#1
0
文件: Module.php 项目: kingsj/core
 /**
  * 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();
 }
示例#2
0
文件: Xpc.php 项目: kirkbauer2/kirkxc
 /**
  * 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;
 }