* String if label is found
*/
static function getValue($daoName, $fieldName, $key, $params = array()) {
- $values = self::get($daoName, $fieldName, $params);
+ $values = self::get($daoName, $fieldName, $params, 'get');
if ($values === FALSE) {
return FALSE;
}
}
/**
- * Fetch the key for a field option given its label/name
+ * Fetch the key for a field option given its name
*
* @param String $daoName
* @param String $fieldName
* String|Number if key is found
*/
static function getKey($daoName, $fieldName, $value, $params = array()) {
- $values = self::get($daoName, $fieldName, $params);
+ $values = self::get($daoName, $fieldName, $params, 'validate');
if ($values === FALSE) {
return FALSE;
}