is this a safe Fetch of nodes from a node id array ?

Author Message

Lazaro Ferreira

Monday 18 October 2004 11:05:41 am

Hi,

Can we fetch a list of nodes from a node's id array, within ezp tpl files ?
( I mean using some sort of fetch tpl operator )

Case not, is it safe fetching it like this :

// $select_result_array :  is a php array of node ids

for( $i=0; $i<count($select_result_array); $i++){
		$select_result[$i] =& eZContentObjectTreeNode::fetch( $select_result_array[$i] );

}

Lazaro
http://www.mzbusiness.com

Lazaro Ferreira

Tuesday 19 October 2004 9:00:00 am

Any ideia ?

Thanks

Lazaro
http://www.mzbusiness.com

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 19 2025 20:05:32
Script start
Timing: Jan 19 2025 20:05:32
Module start 'layout'
Timing: Jan 19 2025 20:05:32
Module start 'content'
Timing: Jan 19 2025 20:05:33
Module end 'content'
Timing: Jan 19 2025 20:05:33
Script end

Main resources:

Total runtime0.7740 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2891152.6406
Module start 'layout' 0.00600.0035 741.929739.4922
Module start 'content' 0.00940.7631 781.4219451.6172
Module end 'content' 0.77250.0015 1,233.03918.2813
Script end 0.7740  1,241.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4434160.0002
Check MTime0.00150.1990160.0001
Mysql Total
Database connection0.00090.112910.0009
Mysqli_queries0.734794.9257520.0141
Looping result0.00050.0615500.0000
Template Total0.740795.720.3703
Template load0.00240.305420.0012
Template processing0.738395.382120.3691
Template load and register function0.00020.023710.0002
states
state_id_array0.00110.137810.0011
state_identifier_array0.00100.127420.0005
Override
Cache load0.00190.2476110.0002
Sytem overhead
Fetch class attribute can translate value0.00060.079110.0006
Fetch class attribute name0.00120.155420.0006
XML
Image XML parsing0.00010.014810.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00070.0934100.0001
String conversion0.00000.001140.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs