API CHANGE Removed @deprecated 2.3 functions from Convert

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77338 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-20 04:50:16 +00:00
parent 9dd77371a7
commit 12bf0a1cae

View File

@ -139,62 +139,6 @@ class Convert extends Object {
}
}
/**
* @deprecated 2.3 Functionality too ambiguous - not sure if its converting
* xml trees to js objects, xml properties to json, ...
*/
static function xml2js($val) {
return self::raw2js(self::html2raw($val));
}
/**
* @deprecated 2.3 use raw2att()
*/
static function xml2att($val) {
return self::raw2att(self::xml2raw($val));
}
/**
* @deprecated 2.3 Use raw2sql()
*/
static function xml2sql($val) {
return self::raw2sql(self::xml2raw($val));
}
/**
* @deprecated 2.3
*/
static function js2raw($val) {
if(is_array($val)) {
foreach($val as $k => $v) $val[$k] = self::js2raw($v);
return $val;
} else {
return str_replace(array('\"','\n','\r'), array('"',"\n","\r"), $val);
}
}
/**
* @deprecated 2.3 Use raw2xml()
*/
static function js2xml($val) {
return self::raw2xml(self::js2raw($val));
}
/**
* @deprecated 2.3 Use raw2att()
*/
static function js2att($val) {
return self::raw2att(self::js2raw($val));
}
/**
* @deprecated 2.3 Use raw2sql()
*/
static function js2sql($val) {
return self::raw2sql(self::js2raw($val));
}
/**
* Uses the PHP 5.2 native json_decode function if available,
* otherwise falls back to the Services_JSON class.