How to fetch all the objects of a given class ?

Author Message

Xavier Dutoit

Tuesday 21 December 2004 11:01:45 am

Hi,

I'm trying to fetch all the object of one type (eg all the articles, no matter where they are).

Isn't it a better solution that a fetch list + filter_class ?

X+

http://www.sydesy.com

Paul Borgermans

Tuesday 21 December 2004 12:12:29 pm

Hi Xavier

Just use content + tree and specify the parent node to be your content root node (normally 2)

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 07:12:47
Script start
Timing: Jan 19 2025 07:12:47
Module start 'layout'
Timing: Jan 19 2025 07:12:47
Module start 'content'
Timing: Jan 19 2025 07:12:48
Module end 'content'
Timing: Jan 19 2025 07:12:48
Script end

Main resources:

Total runtime1.3257 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.0053 589.2891152.6406
Module start 'layout' 0.00530.0038 741.929739.4766
Module start 'content' 0.00911.3151 781.4063527.8438
Module end 'content' 1.32420.0015 1,309.25008.1250
Script end 1.3257  1,317.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2384160.0002
Check MTime0.00130.1005160.0001
Mysql Total
Database connection0.00060.047910.0006
Mysqli_queries1.280896.6143540.0237
Looping result0.00050.0371520.0000
Template Total1.290397.320.6452
Template load0.00200.153320.0010
Template processing1.288397.175720.6441
Template load and register function0.00010.007010.0001
states
state_id_array0.00160.122710.0016
state_identifier_array0.00230.175320.0012
Override
Cache load0.00170.1264140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.049920.0003
Fetch class attribute name0.00090.067940.0002
XML
Image XML parsing0.00110.084720.0006
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00090.0643230.0000
String conversion0.00000.000740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs