From d3e75f144ef31747bbe28becae6060be4b0b8918 Mon Sep 17 00:00:00 2001 From: Rachel Date: Fri, 23 Dec 2016 11:38:37 +0100 Subject: [PATCH] Deprecated HtmlInput::make_object must be replace by json_encode --- include/lib/class_html_input.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/lib/class_html_input.php b/include/lib/class_html_input.php index ea00a496b..74b313b98 100755 --- a/include/lib/class_html_input.php +++ b/include/lib/class_html_input.php @@ -133,6 +133,7 @@ class HtmlInput * @return javascript string with the object * @note: there is not check on the key->value, so you could need to escape * special char as quote, single-quote... + * @deprecated * @code $a=new IButton() $a->set_attribute('prop','1'); @@ -144,7 +145,7 @@ class HtmlInput echo $string => {'prop':'1','prop2':'2','prop3':'3'}; @endcode */ - public function make_object($p_name=null) + public function make_object_deprecated($p_name=null) { $name=($p_name != null)?$p_name.'=':''; if ( count($this->attribute) == 0) return $name."{}";