Fetch the parent ??

Author Message

Anthony M.

Friday 13 October 2006 3:17:37 am

Hello,

the 'fetch' function is used to fetch the children, but is it possible to fetch the parent ??

Thanks for your help

Anthony

Kristof Coomans

Friday 13 October 2006 4:03:30 am

Hello Anthony

If you have a node object in $node then use $node.parent.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 20:49:05
Script start
Timing: Jan 18 2025 20:49:05
Module start 'layout'
Timing: Jan 18 2025 20:49:05
Module start 'content'
Timing: Jan 18 2025 20:49:06
Module end 'content'
Timing: Jan 18 2025 20:49:06
Script end

Main resources:

Total runtime1.3512 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.7969152.6094
Module start 'layout' 0.00730.0039 740.406339.4141
Module start 'content' 0.01121.3387 779.8203518.7188
Module end 'content' 1.34990.0013 1,298.53918.1875
Script end 1.3511  1,306.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2493160.0002
Check MTime0.00140.1061160.0001
Mysql Total
Database connection0.00190.138610.0019
Mysqli_queries1.304796.5636540.0242
Looping result0.00050.0402520.0000
Template Total1.318797.620.6594
Template load0.00170.126620.0009
Template processing1.317097.470720.6585
Template load and register function0.00020.011510.0002
states
state_id_array0.00120.088410.0012
state_identifier_array0.00060.047120.0003
Override
Cache load0.00140.1002100.0001
Sytem overhead
Fetch class attribute can translate value0.00090.063420.0004
Fetch class attribute name0.00180.132330.0006
XML
Image XML parsing0.00060.047820.0003
class_abstraction
Instantiating content class attribute0.00000.001530.0000
General
dbfile0.00080.0583160.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs