How to get the next or previous data from a fetch.

Author Message

Pablo C. Vergara Castro

Wednesday 15 December 2004 3:43:43 pm

I to all.

In my code I have to fetch a folder that have any object's but the same code have to "take diferent decisions" if the next object have an attribute with a value x, but I don't know how to get the next object attributes staying in the actual object.

I try to explain with a example:

In my folder I have this objects:

(attx=>Attribute Number x, and the next character is the value)

1) att1=>a att2=>2 att3=>0
2) att1=>b att2=>4 att3=>0
3) att1=>a att2=>1 att3=>1
4) att1=>b att2=>5 att3=>0

When I fetch the folder, to take the diferent values of the object's I will use a "section loop=xxx" and I need to know if the att3 of the next object will be 1.

Can somebody help be?.

Pablo C. Vergara Castro

Thursday 16 December 2004 11:08:33 am

Why never helps me nobody?

Pablo C. Vergara Castro

Sunday 19 December 2004 3:51:28 pm

It would be thankful that if cannot be done what I have asked somebody said to me that with ezPublish that cannot either be done (like grouping by fields that is not of type date/time)

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 16:50:51
Script start
Timing: Jan 18 2025 16:50:51
Module start 'layout'
Timing: Jan 18 2025 16:50:51
Module start 'content'
Timing: Jan 18 2025 16:50:52
Module end 'content'
Timing: Jan 18 2025 16:50:52
Script end

Main resources:

Total runtime1.4682 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.0469152.6406
Module start 'layout' 0.00710.0033 740.687539.4922
Module start 'content' 0.01041.4562 780.1797433.5625
Module end 'content' 1.46660.0016 1,213.74228.1250
Script end 1.4681  1,221.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2360160.0002
Check MTime0.00140.0924160.0001
Mysql Total
Database connection0.00110.074810.0011
Mysqli_queries1.421496.8166550.0258
Looping result0.00050.0346530.0000
Template Total1.426197.120.7130
Template load0.00210.140520.0010
Template processing1.424096.990520.7120
Template load and register function0.00040.027010.0004
states
state_id_array0.00210.142210.0021
state_identifier_array0.00260.176820.0013
Override
Cache load0.00160.1111180.0001
Sytem overhead
Fetch class attribute can translate value0.00090.059010.0009
Fetch class attribute name0.00160.110430.0005
XML
Image XML parsing0.00010.009110.0001
class_abstraction
Instantiating content class attribute0.00000.000430.0000
General
dbfile0.00070.0505100.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs