public function getConstantName() {
return strtoupper($this->optionName);
}
+
+ /**
+ * Allows modifications of select options.
+ *
+ * @param string $selectOptions
+ */
+ public function modifySelectOptions($selectOptions) {
+ $this->data['selectOptions'] = $selectOptions;
+ }
}
use wcf\system\application\ApplicationHandler;
use wcf\system\exception\SystemException;
use wcf\system\exception\UserInputException;
+use wcf\system\event\EventHandler;
use wcf\system\language\I18nHandler;
use wcf\system\WCF;
use wcf\util\ClassUtil;
$this->cachedOptions = $cache->getData(array(), 'options');
$this->cachedCategoryStructure = $cache->getData(array(), 'categoryStructure');
$this->cachedOptionToCategories = $cache->getData(array(), 'optionToCategories');
+
+ // allow option manipulation
+ EventHandler::getInstance()->fireAction($this, 'afterReadCache');
}
/**