Changeset 17956

Show
Ignore:
Timestamp:
10/06/08 12:10:45 (2 months ago)
Author:
rambo
Message:

need to use classic constructors in branch28, added get_parent_guid for photolink

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/MidCOM_2_8/org.routamc.gallery/photolink.php

    r4795 r17956  
    1919    { 
    2020        return parent::__org_routamc_gallery_photolink_dba($id); 
     21    } 
     22 
     23    function get_parent_guid_uncached() 
     24    { 
     25        if ($this->node != 0) 
     26        { 
     27            $parent = new midcom_db_topic($this->node); 
     28            return $parent->guid; 
     29        } 
     30        else 
     31        { 
     32            debug_push_class(__CLASS__, __FUNCTION__); 
     33            debug_add("No node defined for this photolink", MIDCOM_LOG_DEBUG); 
     34            debug_pop(); 
     35            return null; 
     36        } 
    2137    } 
    2238 
  • branches/MidCOM_2_8/org.routamc.photostream/photo.php

    r17189 r17956  
    3737    var $encoding = 'UTF-8'; 
    3838 
    39     function __construct($id = null) 
    40     { 
    41         return parent::__construct($id); 
     39    function org_routamc_photostream_photo_dba($id = null) 
     40    { 
     41        return parent::__org_routamc_photostream_photo_dba($id); 
    4242    } 
    4343 
     
    5252        { 
    5353            debug_push_class(__CLASS__, __FUNCTION__); 
    54             debug_add("No parent defined for this product", MIDCOM_LOG_DEBUG); 
     54            debug_add("No parent defined for this photo", MIDCOM_LOG_DEBUG); 
    5555            debug_pop(); 
    5656            return null;