Custom poll class

Author Message

Nick Olaros

Thursday 07 December 2006 7:23:54 am

Hi,

I'm new into ez development and have a few questions to start the right way.
I would like to customize the Poll class to add an image attribute to it (not associate an image to the object in order to be more user-friendly).

So I duplicated the poll class, gave it another name, added my image attribute. Then I updated my override ini file so that the default poll templates apply to my new class. It's working fine except for the result page. How does this template work ?

Secondly I'd like to build image options for poll, instead of just text options. Which is the better way to do that ?

Thanks for your advice.

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 03:25:10
Script start
Timing: Jan 19 2025 03:25:10
Module start 'layout'
Timing: Jan 19 2025 03:25:10
Module start 'content'
Timing: Jan 19 2025 03:25:11
Module end 'content'
Timing: Jan 19 2025 03:25:11
Script end

Main resources:

Total runtime1.7190 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.0071 590.1563152.6094
Module start 'layout' 0.00710.0038 742.765639.4297
Module start 'content' 0.01081.7067 782.1953400.0625
Module end 'content' 1.71760.0014 1,182.25788.1875
Script end 1.7190  1,190.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2276160.0002
Check MTime0.00170.0997160.0001
Mysql Total
Database connection0.00160.093910.0016
Mysqli_queries1.678597.6424460.0365
Looping result0.00040.0238440.0000
Template Total1.674697.420.8373
Template load0.00350.204820.0018
Template processing1.671197.212520.8356
Template load and register function0.00020.012910.0002
states
state_id_array0.00370.216310.0037
state_identifier_array0.00290.167120.0014
Override
Cache load0.00280.165190.0003
Sytem overhead
Fetch class attribute can translate value0.00070.040710.0007
Fetch class attribute name0.00060.034510.0006
XML
Image XML parsing0.00010.005510.0001
class_abstraction
Instantiating content class attribute0.00000.000210.0000
General
dbfile0.00080.0443100.0001
String conversion0.00000.000840.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