Changeset 11928
- Timestamp:
- 08/30/07 23:52:36 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/midcom/core/querybuilder.php
r11915 r11928 276 276 function _execute_and_check_privileges($false_on_empty_mgd_resultset = false) 277 277 { 278 debug_push_class(__CLASS__, __FUNCTION__);279 278 // TODO: Remove this silence after all MgdSchemas are fixed 280 279 $result = @$this->_qb->execute(); … … 282 281 { 283 282 $this->_qb_error_result = $result; 283 debug_push_class(__CLASS__, __FUNCTION__); 284 284 debug_print_r('Result was:', $result); 285 285 debug_add('The querybuilder failed to execute, aborting.', MIDCOM_LOG_ERROR); … … 293 293 return $result; 294 294 } 295 debug_add('Got ' . count($result) . ' initial results');296 295 if ( empty($result) 297 296 && $false_on_empty_mgd_resultset) … … 304 303 $newresult = Array(); 305 304 $classname = $this->_real_class; 306 $skipped_objects = 0;307 305 $this->denied = 0; 306 debug_push_class(__CLASS__, __FUNCTION__); 308 307 foreach ($result as $key => $value) 309 308 { … … 311 310 if (isset($this->_seen_guids[$value->guid])) 312 311 { 313 debug_add("The {$classname} object {$value->guid} has already been seen, probably MultiLang bug", MIDCOM_LOG_WARN); 314 //debug_add('var_export($seen_guids): ' . var_export($this->_seen_guids, true)); 312 //debug_add("The {$classname} object {$value->guid} has already been seen, probably MultiLang bug", MIDCOM_LOG_WARN); 315 313 continue; 316 314 } … … 324 322 // This is logged by the callers 325 323 $this->denied++; 326 $skipped_objects++;327 324 continue; 328 325 } … … 333 330 debug_add("Could not create a MidCOM DBA instance of the {$classname} ID {$value->id}. See debug level log for details.", 334 331 MIDCOM_LOG_INFO); 335 $skipped_objects++;336 332 continue; 337 333 } … … 345 341 debug_add("Could not create a MidCOM metadata instance for {$classname} ID {$value->id}, assuming an invisible object.", 346 342 MIDCOM_LOG_INFO); 347 $skipped_objects++;348 343 continue; 349 344 } … … 352 347 { 353 348 debug_add("The {$classname} ID {$value->id} is hidden by metadata.", MIDCOM_LOG_INFO); 354 $skipped_objects++;355 349 continue; 356 350 } … … 359 353 $newresult[] = $object; 360 354 } 361 debug_add('Returning ' . count($newresult) . ' items');355 //debug_add('Returning ' . count($newresult) . ' items'); 362 356 debug_pop(); 363 357 return $newresult;
