*/
abstract class AbstractOptionListForm extends AbstractForm {
/**
- * @see wcf\form\AbstractForm::$errorField
+ * @see wcf\form\AbstractForm::$errorField
*/
public $errorField = array();
/**
- * @see wcf\form\AbstractForm::$errorType
+ * @see wcf\form\AbstractForm::$errorType
*/
public $errorType = array();
/**
* cache name
- * @var string
+ * @var string
*/
public $cacheName = 'option';
public $cacheClass = 'wcf\system\cache\builder\OptionCacheBuilder';
/**
- * Name of the active option category.
- * @var string
+ * name of the active option category
+ * @var string
*/
public $categoryName = '';
*/
protected $languageItemPattern = '';
+ /**
+ * true if active options are loaded when option handler is initialized
+ * @var boolean
+ */
+ public $loadActiveOptions = true;
+
/**
* option handler object
* @var wcf\system\option\IOptionHandler
public $supportI18n = true;
/**
- * @see wcf\page\Page::readParameters()
+ * @see wcf\page\IPage::readParameters()
*/
public function readParameters() {
parent::readParameters();
- $this->optionHandler = new $this->optionHandlerClassName($this->cacheName, $this->cacheClass, $this->supportI18n, $this->languageItemPattern, $this->categoryName);
+ $this->optionHandler = new $this->optionHandlerClassName($this->cacheName, $this->cacheClass, $this->supportI18n, $this->languageItemPattern, $this->categoryName, $this->loadActiveOptions);
}
/**
- * @see wcf\form\IForm::readFormParameters()
+ * @see wcf\form\IForm::readFormParameters()
*/
public function readFormParameters() {
parent::readFormParameters();
}
/**
- * @see wcf\form\IForm::validate()
+ * @see wcf\form\IForm::validate()
*/
public function validate() {
parent::validate();
}
}
+ /**
+ * @see wcf\page\IPage::readData()
+ */
public function readData() {
parent::readData();