| 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 | | } |
|---|