MDL-22414 Removing obj_to_readable helper

This commit is contained in:
David Mudrak 2011-06-09 11:38:15 +02:00
parent 4ece48dc36
commit fad0f24499

View File

@ -179,17 +179,6 @@ abstract class convert_helper {
public static function get_inforef($contextid) {
}
/**
* Converts a plain old php object (popo?) into a string...
* Useful for debuging failed db inserts, or anything like that
*/
public static function obj_to_readable($obj) {
$mapper = function($field, $value) { return "$field=$value"; };
$fields = get_object_vars($obj);
return implode(", ", array_map($mapper, array_keys($fields), array_values($fields)));
}
/// end of public API //////////////////////////////////////////////////////
/**