mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
MDL-22414 Removing obj_to_readable helper
This commit is contained in:
parent
4ece48dc36
commit
fad0f24499
@ -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 //////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user