_acceptedValues = $acceptedValues; parent::__construct($name, $displayName, $validationMessage, $required); } // // Getters and Setters // /** * Set the accepted values * @param $acceptedValues array */ function setAcceptedValues($acceptedValues) { $this->_acceptedValues = $acceptedValues; } /** * Get the accepted values * @return array */ function getAcceptedValues() { return $this->_acceptedValues; } /** * Get a localized array of the accepted * values with the key being the accepted value * and the value being a localized display name. * * NB: The standard implementation displays the * accepted values. * * Can be overridden by sub-classes. * * @return array */ function getLocalizedAcceptedValues() { return array_combine($this->getAcceptedValues(), $this->getAcceptedValues()); } // // Implement abstract template methods from FilterSetting // /** * @see FilterSetting::getCheck() */ function &getCheck(&$form) { $check = new FormValidatorInSet($form, $this->getName(), $this->getRequired(), $this->getValidationMessage(), $this->getAcceptedValues()); return $check; } } ?>