function reload_object($obj, $inneronly = false) { global $sql, $idcounter; $settings_tool = new settings_tool(); $tr = new dom_root_reload(); $tr->append_child($obj); //$tr->for_each_set('oid',-1); if (method_exists($obj, 'bootstrap')) { $obj->bootstrap(); } $tr->collect_oids($settings_tool); $tr->settings_array = $settings_tool->read_oids($sql); $tr->after_build(); //print "\$i('dom_meta_treeview_resize_style').innerHTML=".$tr->html(); print "'"; if ($inneronly) { return $tr->firstinner(); } return $tr->html(); }