From 5c983a25f0e57780aedc0b8d5e8f1ade482f056c Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 15 Nov 2012 11:29:18 +1300 Subject: [PATCH] emove deprecated StringField::Lower() and Upper() methods Use LowerCase() and UpperCase() instead --- model/fieldtypes/StringField.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/model/fieldtypes/StringField.php b/model/fieldtypes/StringField.php index 9f1037f49..a580a0531 100644 --- a/model/fieldtypes/StringField.php +++ b/model/fieldtypes/StringField.php @@ -11,8 +11,6 @@ abstract class StringField extends DBField { static $casting = array( "LimitCharacters" => "Text", - "Lower" => "Text", - "Upper" => "Text", "LowerCase" => "Text", "UpperCase" => "Text", ); @@ -114,15 +112,6 @@ abstract class StringField extends DBField { public function LowerCase() { return mb_strtolower($this->value); } - - /** - * Return another DBField object with this value in lowercase. - * @deprecated 3.0 Use LowerCase() instead. - */ - public function Lower() { - Deprecation::notice('3.0', 'Use LowerCase() instead.'); - return $this->LowerCase(); - } /** * Converts the current value for this Enum DBField to uppercase. @@ -132,13 +121,4 @@ abstract class StringField extends DBField { return mb_strtoupper($this->value); } - /** - * Return another DBField object with this value in uppercase. - * @deprecated 3.0 Use UpperCase() instead. - */ - public function Upper() { - Deprecation::notice('3.0', 'Use UpperCase() instead.'); - return $this->UpperCase(); - } - }