Templates- any docs on the fetch function?

Author Message

Bruce Morrison

Monday 06 January 2003 4:24:20 pm

The fetch function seems to take quite a few arguments and is quite important for customisations. The examples in the demo site are great but I need some more info.

Is there any documentation on this function??? I've looked through the sdk and user guide with no luck.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Adolfo Barragán

Tuesday 07 January 2003 1:48:51 am

First, I'm newbie on ezPublish, so my response should be incomplete.

The fetch function is defined in file eztemplateexcecuteoperator at [ez_root]/lib/eztemplate/classes directory.

It execute a module function and the params are:

fetch( <module_name>, <function_name>, <array of parameters> )

I hope help you

Regards
Adolfo Barragán

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:16:46
Script start
Timing: Jan 18 2025 05:16:46
Module start 'layout'
Timing: Jan 18 2025 05:16:46
Module start 'content'
Timing: Jan 18 2025 05:16:47
Module end 'content'
Timing: Jan 18 2025 05:16:47
Script end

Main resources:

Total runtime0.5851 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.0061 588.0703152.6406
Module start 'layout' 0.00610.0029 740.710939.4766
Module start 'content' 0.00900.5745 780.1875520.8984
Module end 'content' 0.58350.0016 1,301.08598.1250
Script end 0.5851  1,309.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5524160.0002
Check MTime0.00150.2604160.0001
Mysql Total
Database connection0.00110.185310.0011
Mysqli_queries0.540092.2960540.0100
Looping result0.00090.1484520.0000
Template Total0.553594.620.2768
Template load0.00170.298320.0009
Template processing0.551894.304920.2759
Template load and register function0.00010.013910.0001
states
state_id_array0.00150.256910.0015
state_identifier_array0.00130.224820.0007
Override
Cache load0.00140.2367160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.118920.0003
Fetch class attribute name0.00140.239830.0005
XML
Image XML parsing0.00080.133720.0004
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00060.0964160.0000
String conversion0.00000.001540.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/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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs