mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
emove deprecated StringField::Lower() and Upper() methods
Use LowerCase() and UpperCase() instead
This commit is contained in:
parent
9e7bdb3e93
commit
5c983a25f0
@ -11,8 +11,6 @@ abstract class StringField extends DBField {
|
|||||||
|
|
||||||
static $casting = array(
|
static $casting = array(
|
||||||
"LimitCharacters" => "Text",
|
"LimitCharacters" => "Text",
|
||||||
"Lower" => "Text",
|
|
||||||
"Upper" => "Text",
|
|
||||||
"LowerCase" => "Text",
|
"LowerCase" => "Text",
|
||||||
"UpperCase" => "Text",
|
"UpperCase" => "Text",
|
||||||
);
|
);
|
||||||
@ -114,15 +112,6 @@ abstract class StringField extends DBField {
|
|||||||
public function LowerCase() {
|
public function LowerCase() {
|
||||||
return mb_strtolower($this->value);
|
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.
|
* 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 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();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user