* This class provides default implementations for a list of options.
*
* @author Marcel Werk
- * @copyright 2001-2012 WoltLab GmbH
+ * @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage acp.form
*/
public $errorType = array();
- /**
- * cache class name
- * @var string
- */
- public $cacheClass = 'wcf\system\cache\builder\OptionCacheBuilder';
-
/**
* name of the active option category
* @var string
public function readParameters() {
parent::readParameters();
- $this->optionHandler = new $this->optionHandlerClassName($this->cacheClass, $this->supportI18n, $this->languageItemPattern, $this->categoryName);
+ $this->optionHandler = new $this->optionHandlerClassName($this->supportI18n, $this->languageItemPattern, $this->categoryName);
$this->initOptionHandler();
}
* Shows the group add form.
*
* @author Marcel Werk
- * @copyright 2001-2012 WoltLab GmbH
+ * @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage acp.form
* This class provides default implementations for a list of dynamic user options.
*
* @author Marcel Werk
- * @copyright 2001-2012 WoltLab GmbH
+ * @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage acp.form
*/
abstract class UserOptionListForm extends AbstractOptionListForm {
/**
- * @see wcf\acp\form\AbstractOptionListForm::$supportI18n
+ * @see wcf\acp\form\AbstractOptionListForm::$optionHandlerClassName
*/
- public $supportI18n = false;
+ public $optionHandlerClassName = 'wcf\system\option\user\UserOptionHandler';
/**
- * @see wcf\acp\form\AbstractOptionListForm::$optionHandlerClassName
+ * @see wcf\acp\form\AbstractOptionListForm::$supportI18n
*/
- public $optionHandlerClassName = 'wcf\system\option\user\UserOptionHandler';
+ public $supportI18n = false;
/**
* Returns a list of all available user groups.
* Every option handler has to implement this interface.
*
* @author Alexander Ebert
- * @copyright 2001-2012 WoltLab GmbH
+ * @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage system.option
/**
* Creates a new option handler instance.
*
- * @param string $cacheName
- * @param string $cacheClass
* @param boolean $supportI18n
* @param string $languageItemPattern
* @param string $categoryName
*/
- public function __construct($cacheName, $cacheClass, $supportI18n, $languageItemPattern = '', $categoryName = '');
+ public function __construct($supportI18n, $languageItemPattern = '', $categoryName = '');
/**
* Reads user input from given source array.
* cache class name
* @var string
*/
- public $cacheClass = '';
+ protected $cacheClass = 'wcf\system\cache\builder\OptionCacheBuilder';
/**
* list of all option categories
/**
* @see wcf\system\option\IOptionHandler::__construct()
*/
- public function __construct($cacheClass, $supportI18n, $languageItemPattern = '', $categoryName = '') {
- $this->cacheClass = $cacheClass;
+ public function __construct($supportI18n, $languageItemPattern = '', $categoryName = '') {
$this->categoryName = $categoryName;
$this->languageItemPattern = $languageItemPattern;
$this->supportI18n = $supportI18n;
* Handles user options.
*
* @author Alexander Ebert
- * @copyright 2001-2012 WoltLab GmbH
+ * @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage system.option.user
* @category Community Framework
*/
class UserOptionHandler extends OptionHandler {
+ /**
+ * @see wcf\system\option\OptionHandler::$cacheClass
+ */
+ protected $cacheClass = 'wcf\system\cache\builder\UserOptionCacheBuilder';
+
/**
* true, if within registration process
* @var boolean
* Handles user group options.
*
* @author Alexander Ebert
- * @copyright 2001-2012 WoltLab GmbH
+ * @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage system.option.user.group
* @category Community Framework
*/
class UserGroupOptionHandler extends OptionHandler {
+ /**
+ * @see wcf\system\option\OptionHandler::$cacheClass
+ */
+ protected $cacheClass = 'wcf\system\cache\builder\UserGroupOptionCacheBuilder';
+
/**
* user group object
* @var wcf\data\user\group\UserGroup