API CHANGE Removed Convert::raw2html(), use Convert::raw2xml()

API CHANGE Removed Convert::html2plain(), use Convert::xml2raw()
API CHANGE Removed Convert::html2text(), use Convert::xml2raw()
API CHANGE Removed Convert::raw2reserveNL(), use Convert::raw2xml()
API CHANGE Removed  Convert::raw2attr(), use Convert::raw2att()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64374 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-10-16 08:36:27 +00:00
parent 81e89c08fe
commit df19769fd1

View File

@ -348,55 +348,6 @@ class Convert extends Object {
);
}
////////////////////////////////////////////////////////////////////////////////////////////////
// Deprecated
/**
* Converts the given val from a raw string into HTML.
* has support for multibyte charaters.
*
* @param $val the string you wish to convert
* @return the HTML version of the string
* @deprecated
*/
static function raw2html($val) {
user_error("Convert::raw2html is deprecated. Used Convert::raw2xml instead", E_USER_NOTICE);
return self::raw2xml($val);
}
/**
* @deprecated
*/
static function html2plain($val){
user_error("html2plain is deprecated. Use xml2raw instead.", E_USER_NOTICE);
return self::html2raw($val);
}
/**
* @deprecated
*/
static function html2text($val, $preserveLinks = false) {
user_error("html2text is deprecated. Use xml2raw instead.", E_USER_NOTICE);
return self::html2raw($val);
}
/**
* @deprecated
*/
static function raw2reserveNL($val){
user_error("Convert::raw2reserveNL is deprecated. Used Convert::raw2xml instead", E_USER_NOTICE);
return self::raw2xml($val);
}
/**
* @deprecated
*/
static function raw2attr($val) {
user_error("raw2attr is deprecated. Use raw2att instead.", E_USER_WARNING);
return self::raw2att($val);
}
}
?>