diff --git a/core/model/fieldtypes/DBField.php b/core/model/fieldtypes/DBField.php index 03433454a..a8269347e 100644 --- a/core/model/fieldtypes/DBField.php +++ b/core/model/fieldtypes/DBField.php @@ -168,6 +168,14 @@ abstract class DBField extends ViewableData { return Convert::raw2xml($this->value); } + /** + * Converts the current value for this Enum DBField to lowercase. + * @return string + */ + function LowerCase() { + return Convert::raw2xml(strtolower($this->value)); + } + /** * Returns the value to be set in the database to blank this field. * Usually it's a choice between null, 0, and '' diff --git a/core/model/fieldtypes/Varchar.php b/core/model/fieldtypes/Varchar.php index 4b13ab91f..4e74952cd 100644 --- a/core/model/fieldtypes/Varchar.php +++ b/core/model/fieldtypes/Varchar.php @@ -48,10 +48,6 @@ class Varchar extends DBField { return $this->raw2HTML(); }*/ - function LowerCase() { - return Convert::raw2xml(strtolower($this->value)); - } - function LimitCharacters($limit = 20, $add = "...") { $value = trim($this->value); return (strlen($value) > $limit) ? substr($value, 0, $limit) . $add : $value;