/** * @see Module::readData() */ public function readData() { parent::readData(); // parse text require_once WCF_DIR . 'lib/data/message/bbcode/MessageParser.class.php'; $parser = MessageParser::getInstance(); $this->getOptions()->getGroup('general')->getOption('content')->setValue($parser->parse($this->getOptions()->getGroup('general')->getOption('content')->getValue(), true, false, true)); }
/** * @see Module::assignVariables() */ public function assignVariables() { parent::assignVariables(); if (MODULE_USERS_ONLINE) { require_once WCF_DIR . 'lib/data/user/usersOnline/UsersOnlineList.class.php'; $usersOnlineList = new UsersOnlineList('', true); $usersOnlineList->renderOnlineList(); } }
/** * @see AbstractModule::readData() */ public function readData() { parent::readData(); // init sidebar factory $this->sidebarFactory = new MessageSidebarFactory($this); // read cache WCF::getCache()->addResource('newsItemsPageModule-' . $this->instanceID, WCF_DIR . 'cache/cache.newsItemsPageModule-' . $this->instanceID . '.php', WCF_DIR . 'lib/system/cache/CacheBuilderNewsPageModule.class.php'); $this->newsItems = WCF::getCache()->get('newsItemsPageModule-' . $this->instanceID); // add items to sidebar factory foreach ($this->newsItems as $item) { $this->sidebarFactory->create($item); } }
/** * @see AbstractModule::readData() */ public function readData() { parent::readData(); if (!$this->noJS) { // add additional head contents $this->additionalHeadContents = '<script type="text/javascript" src="' . RELATIVE_WCF_DIR . 'js/githubPageModule.js"></script>'; } else { // generate api url $this->generateAPIUrl($this->getOptions()->getGroup('general')->getOption('username')->getValue(), $this->getOptions()->getGroup('general')->getOption('repository')->getValue(), $this->getOptions()->getGroup('general')->getOption('branch')->getValue()); // read commits from api $this->readCommits(); } }
/** * @see Module::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->append('specialStyles', '<style type="text/css"> <!-- #teaser' . $this->instanceID . ' .teaserBoxContent, ul.teaserBoxTeaser li a { height: ' . $this->getOptions()->getGroup('general')->getOption('height')->getValue() . 'px; } #teaser' . $this->instanceID . ' ul.teaserBoxNavigation li a span { color: ' . $this->getOptions()->getGroup('general')->getOption('fontcolor')->getValue() . '; } #teaser' . $this->instanceID . ' ul.teaserBoxNavigation li.activeTeaser a span { color: ' . $this->getOptions()->getGroup('general')->getOption('fontcolorActive')->getValue() . '; } #teaser' . $this->instanceID . ' ul.teaserBoxNavigation li.teaserNav { background-color: ' . $this->getOptions()->getGroup('general')->getOption('backgroundColor')->getValue() . '; } #teaser' . $this->instanceID . ' ul.teaserBoxNavigation li.activeTeaser { background-color: ' . $this->getOptions()->getGroup('general')->getOption('backgroundColorActive')->getValue() . '; } --> </style>'); }
public function __construct() { parent::__construct(new View(Config::DIR_TMPL)); }
/** * __destruct function. * * @access public * @return void */ public function __destruct() { //TODO: log error if set true parent::__destruct(); }
} set_exception_handler('writeException'); OutlineTpl::globalAssign('pageTitle', 'aoxPages Devel'); try { aoxPages::setDB($dbHost, $dbUser, $dbPassword, $dbName, $dbSystem); } catch (Exception $e) { writeException($e); } try { $_config = new Config(); $configID = $_config->getOption('standardConfigID'); $_config->resetConfig($configID); } catch (Exception $e) { writeException($e); } $getModule = $_GET['module']; if (empty($getModule)) { $getModule = $_config->getOption('standardModule'); } $module = NULL; if (AbstractModule::isValidModule($getModule, true)) { require AOX_MODULE_PATH . "/" . $getModule . ".class.php"; $module = new $getModule(); } else { require AOX_MODULE_PATH . "/ErrorModule.class.php"; $module = new ErrorModule(); $module->setTitle("Module-Error"); $module->setMessage("The module you selected was not found. The administrator was informed about this error."); $module->setRedirect(false); } $module->display();
/** * Tests AbstractModule->getAutoloaderConfig() */ public function testGetAutoloaderConfig() { $config = $this->AbstractModule->getAutoloaderConfig(); $this->assertArrayHasKey('Zend\\Loader\\ClassMapAutoloader', $config); $this->assertArrayHasKey('Zend\\Loader\\StandardAutoloader', $config); }
/** * @see Module::readData() */ public function readData() { parent::readData(); eval($this->getOptions()->getGroup('general')->getOption('code')->getValue()); }