public function checkLimit_MAP_within($fieldObj, $vals) { if (!is_array($vals) || !array_key_exists('value', $vals)) { return null; } $vals['value'] = '' . $vals['value']; if (strlen($vals['value']) == 0) { return null; } $use_values = array(); foreach (I2CE_List::findLowerMatches($vals['value'], $fieldObj->getDisplayedFields(), $fieldObj->getSelectableForms(), true) as $valid) { $use_values[] = "'" . $valid . "'"; } return in_array($fieldObj->getDBValue(), $use_values); }