Changeset 13407

Show
Ignore:
Timestamp:
11/13/07 10:52:04 (1 year ago)
Author:
bergie
Message:

Parent resolution is now happening via reflection

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/baseclasses/database/style.php

    r3766 r13407  
    3030        parent::__midcom_baseclasses_database_style($id); 
    3131    } 
    32  
    33     /** 
    34      * Returns the Parent of the Snippet. 
    35      * 
    36      * @return MidgardObject Parent object or NULL if there is none. 
    37      */ 
    38     function get_parent_guid_uncached() 
    39     { 
    40         if ($this->up == 0) 
    41         { 
    42             return null; 
    43         } 
    44  
    45         $parent = new midcom_baseclasses_database_style($this->up); 
    46         if (! $parent) 
    47         { 
    48             debug_push_class(__CLASS__, __FUNCTION__); 
    49             debug_add("Could not load Style ID {$this->up} from the database, aborting.", 
    50                 MIDCOM_LOG_INFO); 
    51             debug_pop(); 
    52             return null; 
    53         } 
    54  
    55         return $parent->guid; 
    56     } 
    5732} 
    5833