Changeset 10962

Show
Ignore:
Timestamp:
06/14/07 16:44:24 (2 years ago)
Author:
adrenalin
Message:

Debugging problems in handling temporary objects (i.e. image and blob
links). Fixing typos in documentation.

Files:

Legend:

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

    r4864 r10962  
    153153            $tmpid = $_REQUEST[$this->_tmpid_fieldname]; 
    154154            $object = $_MIDCOM->tmp->request_object($tmpid); 
    155             if ($object) 
     155             
     156            if (   $object 
     157                && isset($object->guid) 
     158                && $object->guid) 
    156159            { 
    157160                $storage = new midcom_helper_datamanager2_storage_tmp($this->schemadb[$this->schemaname], $this->defaults, $object); 
  • trunk/midcom/midcom.helper.datamanager2/formmanager.php

    r5412 r10962  
    1414 * Datamanger 2 Form Manager core class. 
    1515 * 
    16  * This class controls all form rendering and basic form data i/o. It works independant 
     16 * This class controls all form rendering and basic form data i/o. It works independent 
    1717 * of any data storage, getting its defaults from some external controlling instance in 
    1818 * the form of a type array (f.x. a datamanager class can provide this). The list of types 
  • trunk/midcom/midcom.helper.datamanager2/storage/midgard.php

    r5066 r10962  
    99 
    1010/** 
    11  * Datamanger 2 Data storage implementation: Pure Midgard object. 
     11 * Datamanager 2 Data storage implementation: Pure Midgard object. 
    1212 * 
    13  * This class is aimed to encaspulate storage to regular Midgard objects. 
     13 * This class is aimed to encapsulate storage to regular Midgard objects. 
    1414 * 
    1515 * @package midcom.helper.datamanager2 
     
    5151    function _on_store_data($name, $data) 
    5252    { 
     53        debug_push_class(__CLASS__, __FUNCTION__); 
     54        debug_print_r("Store to field '{$name}' data", $data); 
     55        debug_pop(); 
     56         
    5357        switch ($this->_schema->fields[$name]['storage']['location']) 
    5458        { 
  • trunk/midcom/midcom.helper.datamanager2/storage/tmp.php

    r2789 r10962  
    99 
    1010/** 
    11  * Datamanger 2 Data storage implementation: Temporary storage object. 
     11 * Datamanager 2 Data storage implementation: Temporary storage object. 
    1212 * 
    1313 * This class is aimed to provide a dummy storage object, used as intermediate backend between 
  • trunk/midcom/midcom.helper.datamanager2/type/image.php

    r10960 r10962  
    592592        if ($force_pending_attachments === false) 
    593593        { 
    594             // PHP5-TODO: Must be copy-by-value 
    595594            $this->_pending_attachments = $this->attachments; 
    596595        }