Fixed time selection

Author Message

paul bolger

Sunday 03 May 2009 3:43:04 am

I'm developing a set of policy documents which have a 'last reviewed' date and a 'review frequency' of one year, two years, three years or 'other' (special case to be detailed in the policy document).

The 'last reviewed date' is a date datatype.

I'd like to be able to present a dropdown of the 'review frequency' and then display the 'next review date' by adding the length of that parameter to the 'last review' date.

Is there a datatype which can produce a hidden value (a unix timestamp) for a selection, or would it be more resource efficient to process the '0', '1',... from a simple selection by creating and destroying variables for each value in a foreach loop? There are several hundred of these documents.

Paul Bolger

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:26:13
Script start
Timing: Jan 19 2025 00:26:13
Module start 'layout'
Timing: Jan 19 2025 00:26:13
Module start 'content'
Timing: Jan 19 2025 00:26:15
Module end 'content'
Timing: Jan 19 2025 00:26:15
Script end

Main resources:

Total runtime1.4726 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.0062 587.9063152.6250
Module start 'layout' 0.00620.0032 740.531339.4453
Module start 'content' 0.00941.4615 779.9766465.0703
Module end 'content' 1.47090.0017 1,245.04698.1719
Script end 1.4726  1,253.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.3045160.0003
Check MTime0.00250.1698160.0002
Mysql Total
Database connection0.00070.046610.0007
Mysqli_queries1.426696.8753460.0310
Looping result0.00050.0350440.0000
Template Total1.437197.620.7186
Template load0.00210.141320.0010
Template processing1.435097.446120.7175
Template load and register function0.00010.007610.0001
states
state_id_array0.00070.048310.0007
state_identifier_array0.00180.124220.0009
Override
Cache load0.00160.110880.0002
Sytem overhead
Fetch class attribute can translate value0.00150.104010.0015
Fetch class attribute name0.00090.061920.0005
XML
Image XML parsing0.00050.034710.0005
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00110.0749160.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0007 secs