/** * Checks to see if the current value for this is set and valid. * @return boolean */ public function isValid() { $value = $this->getValue(); $curr_value = parent::getFromDB($value[0]); return count($this->value) == 2 && I2CE_Validate::checkCurrency($value[1]) && I2CE_Validate::checkString($curr_value[1]) && in_array($curr_value[0], $this->getSelectableForms()); }