getBySymbolic($symbolic, $assocType, $assocId); if ($controlledVocab) $this->_acceptedValues = array_keys($controlledVocab->enumerate()); else $this->_acceptedValues = array(); } // // Implement abstract methods from Validator // /** * @see Validator::isValid() * Value is valid if it is empty and optional or is in the set of accepted values. * @param $value mixed * @return boolean */ function isValid($value) { return in_array($value, $this->_acceptedValues); } } ?>