public function setValue($value) { if (!array_key_exists($value, $this->getMultiOptions())) { parent::setValue('Null'); } else { parent::setValue($value); } }
public function init() { parent::init(); $values = array('Null', 'I', 'M', 'S'); foreach ($values as $value) { $this->addMultiOption($value, 'Opus_Language_Scope_Value_' . $value); } }