/** * Constructor * * @param mixed $label Param label (text) * @param mixed $value Default value OPTIONAL * @param mixed $isSetting Display this setting in CMS or not OPTIONAL * @param string $class Object class OPTIONAL * * @return void */ public function __construct($label, $value = null, $isSetting = false, $class = null) { parent::__construct($label, $value, $isSetting); // TODO - check if there are more convinient way to extend this class if (!isset($this->class)) { $this->class = $class; } }
/** * Constructor * * @param mixed $label Param label (text) * @param mixed $value Default value OPTIONAL * @param mixed $isSetting Display this setting in CMS or not OPTIONAL * @param array $options Options list OPTIONAL * * @return void */ public function __construct($label, $value = null, $isSetting = false, array $options = array()) { parent::__construct($label, $value, $isSetting); // TODO - check if there are more convinient ways to extend this class if (!isset($this->options)) { $this->setOptions($options); } }