how to get value of Enum (not name)?

Author Message

Vytautas Germanavičius

Friday 19 August 2005 3:59:26 am

I know Enum is deprecated, but i could not find any other way to do following:

I need to know users zodiac, and i made:

Choose your zodiac:
Option name: Vė¸ys(Cancer)
Option value: images/zodiac-cancer.gif

Problem, that i can get only word "Vė¸ys(Cancer)", but no way to get name of image.
With english it's no problem, but in lithuanian zodiac names has utf-8 symbols, which i cannot(and do not want because of translations) use for filenames.

{set-block scope=root variable=cache_ttl}0{/set-block}

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 04:52:01
Script start
Timing: Jan 19 2025 04:52:01
Module start 'layout'
Timing: Jan 19 2025 04:52:01
Module start 'content'
Timing: Jan 19 2025 04:52:02
Module end 'content'
Timing: Jan 19 2025 04:52:02
Script end

Main resources:

Total runtime0.9926 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.0061 589.1641152.6250
Module start 'layout' 0.00610.0035 741.789139.4609
Module start 'content' 0.00960.9816 781.2500463.8984
Module end 'content' 0.99110.0014 1,245.14848.3125
Script end 0.9925  1,253.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4135160.0003
Check MTime0.00170.1717160.0001
Mysql Total
Database connection0.00090.087210.0009
Mysqli_queries0.948795.5815460.0206
Looping result0.00040.0400440.0000
Template Total0.945595.320.4728
Template load0.00220.224020.0011
Template processing0.943395.037520.4716
Template load and register function0.00010.013110.0001
states
state_id_array0.00260.265910.0026
state_identifier_array0.00330.330220.0016
Override
Cache load0.00200.2001110.0002
Sytem overhead
Fetch class attribute can translate value0.00090.091310.0009
Fetch class attribute name0.00060.063220.0003
XML
Image XML parsing0.00050.050710.0005
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00120.1163160.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/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
3content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs