Where-clause

Author Message

Paal Are Solberg

Wednesday 17 September 2003 11:38:53 am

With fetch() I can return the objects in (say) a folder and display them nicely using custom templates.

But can I do an sql-like where-clause in a fetch (or in the display code), such that only objects with attribute values that meet certain conditions are returned (or displayed)... how would I do this?

If possible, I would like to set the selection (or display) criterion based on user selection (user input), how would I do this? ($view_parameters?)

Hope somebody can help witj this :)
regards,

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 00:36:03
Script start
Timing: Jan 19 2025 00:36:03
Module start 'layout'
Timing: Jan 19 2025 00:36:03
Module start 'content'
Timing: Jan 19 2025 00:36:04
Module end 'content'
Timing: Jan 19 2025 00:36:04
Script end

Main resources:

Total runtime0.7585 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.0065 587.7891152.6094
Module start 'layout' 0.00650.0035 740.398439.4141
Module start 'content' 0.00990.7473 779.8125399.6797
Module end 'content' 0.75730.0012 1,179.49228.1953
Script end 0.7585  1,187.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4392160.0002
Check MTime0.00130.1681160.0001
Mysql Total
Database connection0.00100.132910.0010
Mysqli_queries0.723495.3687460.0157
Looping result0.00040.0493440.0000
Template Total0.727195.920.3636
Template load0.00180.230720.0009
Template processing0.725495.628620.3627
Template load and register function0.00030.034810.0003
states
state_id_array0.00150.199110.0015
state_identifier_array0.00110.142420.0005
Override
Cache load0.00140.181180.0002
Sytem overhead
Fetch class attribute can translate value0.00070.095810.0007
Fetch class attribute name0.00070.086010.0007
XML
Image XML parsing0.00010.013710.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00150.2024100.0002
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
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs