Group_by parameter in fetch function

Author Message

Scott Blundell

Wednesday 03 March 2004 4:19:20 am

Does anyone have any examples on how to use the group_by parameter within the fetch function?

It sounds useful but I cannot find any documentation or any examples that use it.

Thanks in advance

Scott

James Packham

Wednesday 03 March 2004 5:33:34 am

There's an example in the blog demo. If you didn't install it look at

kernel/setup/packages/blog/files/default/design.blog/override/templates/archive_navigatorbar.tpl
kernel/setup/packages/blog/files/default/design.blog/override/templates/log_navigationbar.tpl

Regards,

James

Scott Blundell

Wednesday 03 March 2004 7:42:40 am

Thanks for the help, James - it was just what I was after.

Regards

Scott

Alex Jones

Wednesday 03 March 2004 7:44:39 am

It would be nice to see some documentation on <i>group_by</i>. I have no clue as to what it does other than assuming that it will group the returned results. But what are the valid keys that we can group by? Attributes, classes, sections...?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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

Main resources:

Total runtime1.0969 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.4609152.6406
Module start 'layout' 0.00730.0039 742.101639.4766
Module start 'content' 0.01121.0845 781.5781577.8750
Module end 'content' 1.09570.0012 1,359.453112.1406
Script end 1.0968  1,371.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2942160.0002
Check MTime0.00130.1175160.0001
Mysql Total
Database connection0.00120.111910.0012
Mysqli_queries1.042695.0527620.0168
Looping result0.00060.0590600.0000
Template Total1.058096.520.5290
Template load0.00210.189620.0010
Template processing1.055996.262920.5279
Template load and register function0.00020.019610.0002
states
state_id_array0.00250.231710.0025
state_identifier_array0.00110.100820.0006
Override
Cache load0.00170.1567220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.058330.0002
Fetch class attribute name0.00100.093560.0002
XML
Image XML parsing0.00140.127130.0005
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00110.1017220.0001
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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs