From fad0f244996bb369d319bee17bc272ae00d15510 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Thu, 9 Jun 2011 11:38:15 +0200 Subject: [PATCH] MDL-22414 Removing obj_to_readable helper --- backup/util/helper/convert_helper.class.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/backup/util/helper/convert_helper.class.php b/backup/util/helper/convert_helper.class.php index 0fc17156caa..7301b4bb915 100644 --- a/backup/util/helper/convert_helper.class.php +++ b/backup/util/helper/convert_helper.class.php @@ -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 ////////////////////////////////////////////////////// /**