retrieving filtered related objects

Author Message

Ovanes Markarian

Tuesday 13 May 2008 2:50:15 pm

Is it possible to use:

fetch( 'content', 'related_objects',
        hash( 'object_id',            object_id,
            [ 'attribute_identifier', attribute_identifier, ]
            [ 'all_relations',        boolean,              ]
            [ 'group_by_attribute',   boolean,              ],
            [ 'sort_by',              sort_by               ] ) )

function to retrieve related objects filtered by class type. Like retrieving only images or only special content or only links etc.

May be this function is wrong anyway and I should use another one?

Many thanks in advance!
Ovanes

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 22:40:08
Script start
Timing: Jan 18 2025 22:40:08
Module start 'layout'
Timing: Jan 18 2025 22:40:08
Module start 'content'
Timing: Jan 18 2025 22:40:08
Module end 'content'
Timing: Jan 18 2025 22:40:08
Script end

Main resources:

Total runtime0.7383 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1641152.6406
Module start 'layout' 0.00590.0032 741.804739.4609
Module start 'content' 0.00900.7279 781.2656401.4219
Module end 'content' 0.73700.0013 1,182.68758.1563
Script end 0.7383  1,190.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4544160.0002
Check MTime0.00140.1868160.0001
Mysql Total
Database connection0.00080.109610.0008
Mysqli_queries0.700394.8572460.0152
Looping result0.00040.0608440.0000
Template Total0.705795.620.3528
Template load0.00220.292520.0011
Template processing0.703595.284920.3517
Template load and register function0.00020.023210.0002
states
state_id_array0.00180.241610.0018
state_identifier_array0.00100.133320.0005
Override
Cache load0.00170.235090.0002
Sytem overhead
Fetch class attribute can translate value0.00090.126710.0009
Fetch class attribute name0.00060.086010.0006
XML
Image XML parsing0.00040.056610.0004
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00060.0855100.0001
String conversion0.00000.001240.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
1content/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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 6

Time used to render debug report: 0.0002 secs