Changeset 11955

Show
Ignore:
Timestamp:
08/31/07 18:03:59 (1 year ago)
Author:
tarjei
Message:

Remember current schema name, remove logging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.helper.datamanager2/datamanager.php

    r11908 r11955  
    4343 
    4444    /** 
     45     * The id (array index) of the current schema 
     46     * @var string schema_name 
     47     */ 
     48    var $schema_name 
     49    /** 
    4550     * This is the storage implementation which is used for operation on the types. It encaspulates 
    4651     * the storage target. 
     
    132137 
    133138        $this->schema =& $this->_schemadb[$name]; 
     139        $this->schema_name = $name; 
    134140 
    135141        return $this->_load_types(); 
     
    199205        foreach ($this->schema->fields as $name => $config) 
    200206        { 
     207            if (!isset($config['type']) ) 
     208            { 
     209                throw new Exception("The field "$name" is missing type"); 
     210            } 
     211 
    201212            $filename = MIDCOM_ROOT . "/midcom/helper/datamanager2/type/{$config['type']}.php"; 
    202213            $classname = "midcom_helper_datamanager2_type_{$config['type']}"; 
  • trunk/midcom/midcom.helper.datamanager2/formmanager.php

    r11359 r11955  
    700700        { 
    701701            // Validate the from. 
    702             debug_push_class(__CLASS__, __FUNCTION__); 
    703             debug_print_r('this->form', $this->form); 
    704             debug_print_r("\$GLOBALS['_HTML_QuickForm_registered_rules']", $GLOBALS['_HTML_QuickForm_registered_rules']); 
    705             debug_pop(); 
    706702            if (! $this->form->validate()) 
    707703            { 
    708704                debug_push_class(__CLASS__, __FUNCTION__); 
    709705                debug_add('Failed to validate the form, reverting to edit mode.'); 
    710                 debug_print_r('Results were:', $results); 
     706                //debug_print_r('Results were:', $results); 
    711707                debug_pop(); 
    712708                $exitcode = 'edit';