API CHANGE Removed @deprecated method Text::LimitWordCountPlainText(): Please use Text::LimitWordCount() instead

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77635 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-22 04:54:51 +00:00
parent cd2a6e0608
commit ee072565ec

View File

@ -67,16 +67,6 @@ class Text extends DBField {
return (strlen($value) > $limit) ? substr($value, 0, $limit) . $add : $value;
}
/**
* @deprecated. Please use {@link LimitWordCount()}
*/
function LimitWordCountPlainText($numWords = 26) {
$ret = $this->LimitWordCount( $numWords );
// Use LimitWordCountXML() instead!
// return Convert::raw2xml($ret);
return $ret;
}
/**
* Limit the number of words of the current field's
* content. This is XML safe, so characters like &