Changeset 11908
- Timestamp:
- 08/30/07 19:33:47 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.datamanager2/datamanager.php
r11584 r11908 113 113 debug_push_class(__CLASS__, __FUNCTION__); 114 114 debug_add("The active schema database is invalid.", MIDCOM_LOG_ERROR); 115 debug_print_r('Schema database in use:', $this->_schemadb);116 115 debug_pop(); 117 116 return false; … … 122 121 debug_push_class(__CLASS__, __FUNCTION__); 123 122 debug_add("The schema {$name} was not found in the active schema database.", MIDCOM_LOG_INFO); 124 debug_print_r('Schema database in use:', $this->_schemadb);125 123 debug_pop(); 126 124 return false; trunk/midcom/midcom.helper.datamanager2/renderer/simple.php
r5286 r11908 305 305 function _prepareTemplate($name, $label, $required, $error, $type = false) 306 306 { 307 debug_add("_prepareTemplate called with options: {$name}, {$label}, {$required}, {$error}, $type");308 307 if (is_array($label)) { 309 308 $nameLabel = array_shift($label); … … 313 312 314 313 if (isset($this->_templates[$name])) { 315 debug_add("_prepareTemplate _templates[{$name}] check caught, using template\n===\n{$this->_templates[$name]}\n===\n");316 314 $html = str_replace('{label}', $nameLabel, $this->_templates[$name]); 317 315 } else if ($this->_inGroup) { 318 316 /* rambo: I'm pretty sure this is never reached... */ 319 debug_add("_prepareTemplate ingroup check caught, using template\n===\n{$this->_defaultGroupTemplate}\n===\n");320 317 $html = str_replace('{label}', $nameLabel, $this->_defaultGroupTemplate); 321 318 } else { 322 debug_add("_prepareTemplate else caught, switching by type: {$type}");323 319 switch ($type) 324 320 { … … 330 326 break; 331 327 } 332 debug_add("_prepareTemplate using template\n===\n{$template}\n===\n");333 328 $html = str_replace('{label}', $nameLabel, $template); 334 329 } … … 380 375 function renderElement(&$element, $required, $error) 381 376 { 382 debug_print_r('renderElement got element: ', $element);383 377 if (!$this->_inGroup) { 384 378 $html = $this->_prepareTemplate($element->getName(), $element->getLabel(), $required, $error, $element->getType());
