Selection datatype

Author Message

Daniel Guerrier

Monday 19 September 2005 11:48:51 am

I have a content class with a attribute of type selection. I can see the value of the selected using attribute view gui. What I need to do is to get the actual value that was selected in order to compare the value in a forloop.

How do I get the actual value from a selection datatype?

An even better question would be, where can I look to find out the answer to this question for any datatype?

Thanks,
Danny

Mazen Alsibai

Wednesday 21 September 2005 1:57:15 am

Hi:
the value thar you get from the selectin type is the order of the elements, not the elements itself,
so if you want to compare, you have to do it by using the order of the wanted item,not the value of it

Daniel Guerrier

Wednesday 21 September 2005 9:16:55 am

Thanks for the response.
Can you give me an example?

Thank you again.

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 15:09:39
Script start
Timing: Jan 19 2025 15:09:39
Module start 'layout'
Timing: Jan 19 2025 15:09:39
Module start 'content'
Timing: Jan 19 2025 15:09:40
Module end 'content'
Timing: Jan 19 2025 15:09:40
Script end

Main resources:

Total runtime1.1547 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.1328152.6094
Module start 'layout' 0.00490.0031 741.742239.4141
Module start 'content' 0.00801.1452 781.1563467.0313
Module end 'content' 1.15330.0014 1,248.18758.1875
Script end 1.1547  1,256.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2619160.0002
Check MTime0.00140.1178160.0001
Mysql Total
Database connection0.00070.059110.0007
Mysqli_queries1.112696.3549570.0195
Looping result0.00050.0465550.0000
Template Total1.120497.020.5602
Template load0.00180.156820.0009
Template processing1.118696.869420.5593
Template load and register function0.00010.012810.0001
states
state_id_array0.00160.136110.0016
state_identifier_array0.00090.074520.0004
Override
Cache load0.00140.1255160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.057020.0003
Fetch class attribute name0.00110.096330.0004
XML
Image XML parsing0.00030.026420.0002
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00070.0567100.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
3content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs