Changeset 12726
- Timestamp:
- 10/09/07 22:39:22 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.datamanager2/exec/chooser_handler.php
r12725 r12726 11 11 12 12 debug_push_class('midcom_helper_datamanager2_widget_chooser_handler', 'initialize'); 13 14 debug_print_r('_REQUEST', $_REQUEST); 13 // debug_print_r('_REQUEST', $_REQUEST); 15 14 16 15 // Common variables … … 52 51 foreach ($map as $map_key) 53 52 { 54 debug_add("map extras :: checking map_key {$map_key}");53 // debug_add("map extras :: checking map_key {$map_key}"); 55 54 if ( isset($extra_params[$map_key]) 56 55 && !empty($extra_params[$map_key])) 57 56 { 58 debug_add("found");57 // debug_add("found"); 59 58 $$map_key = $extra_params[$map_key]; 60 59 } 61 60 else 62 61 { 63 debug_add("Not found");62 // debug_add("Not found"); 64 63 $$map_key = false; 65 64 } … … 123 122 else 124 123 { 125 debug_add("Using component: {$component}");126 debug_add("Using class: {$class}");124 // debug_add("Using component: {$component}"); 125 // debug_add("Using class: {$class}"); 127 126 128 127 // Load component if required … … 150 149 exit(); 151 150 } 152 153 // if (!empty($reflector_key))154 // {155 // $qb = new midgard_query_builder($class);156 // }157 // else158 // {159 // $qb = call_user_func(array($class, 'new_query_builder'));160 // }161 151 162 152 $qb = @call_user_func(array($class, 'new_query_builder')); trunk/midcom/midcom.helper.datamanager2/widget/chooser.php
r12723 r12726 460 460 function _check_callback() 461 461 { 462 debug_push_class(__CLASS__, __FUNCTION__);463 debug_add("Checking callback class {$this->_callback_class}");462 // debug_push_class(__CLASS__, __FUNCTION__); 463 // debug_add("Checking callback class {$this->_callback_class}"); 464 464 465 465 if (! class_exists($this->_callback_class)) … … 486 486 $this->_callback = new $this->_callback_class($this->_callback_args); 487 487 488 debug_pop();488 // debug_pop(); 489 489 490 490 if (is_callable(array($this->_callback, 'initialize'))) … … 1139 1139 function _object_to_jsdata(&$object) 1140 1140 { 1141 debug_push_class(__CLASS__, __FUNCTION__);1142 debug_add("converting object with id {$object->id} to jsdata");1141 // debug_push_class(__CLASS__, __FUNCTION__); 1142 // debug_add("converting object with id {$object->id} to jsdata"); 1143 1143 1144 1144 $id = @$object->id; … … 1168 1168 $value = @$object->$item_name; 1169 1169 $value = rawurlencode($value); 1170 debug_add("adding header item: name={$item_name} value={$value}");1170 // debug_add("adding header item: name={$item_name} value={$value}"); 1171 1171 $jsdata .= "{$item_name}: '{$value}'"; 1172 1172 … … 1182 1182 $jsdata .= "}"; 1183 1183 1184 debug_pop();1184 // debug_pop(); 1185 1185 1186 1186 return $jsdata; … … 1189 1189 function _get_key_data($key, $in_render_mode=false) 1190 1190 { 1191 debug_push_class(__CLASS__, __FUNCTION__);1192 debug_add("get_key_data for key: {$key}");1191 // debug_push_class(__CLASS__, __FUNCTION__); 1192 // debug_add("get_key_data for key: {$key}"); 1193 1193 1194 1194 if ($this->_callback) … … 1209 1209 } 1210 1210 1211 debug_pop();1211 // debug_pop(); 1212 1212 1213 1213 if ($this->_renderer_callback) … … 1312 1312 // debug_pop(); 1313 1313 1314 return Array($this->name => $defaults);1314 return array($this->name => $defaults); 1315 1315 } 1316 1316
