Enum Value, where to find it ?!

Author Message

Selmah Maxim

Wednesday 07 May 2003 5:02:17 am

Hi ..

any1 know how to get the enum value ?

thx

Sergiy Pushchin

Wednesday 07 May 2003 6:28:29 am

$dataMap = $yourContentObj->attribute( 'data_map' )
$enumAttribute = $dataMap[ 'your_enum_attribute_identifier' ];
$enumObj = $enumAttribute->attribute( 'content' );
//That is an array off selected enum values, if it is single select it will
// consist of one element
$enumobjectList = $enumObj->attribute( 'enumobject_list' );
$selectedEnumValue = $enumobjectList[0]->attribute( 'enumelement' );

Is this what you was wondering about?

Selmah Maxim

Wednesday 07 May 2003 7:30:05 am

thx fro reply .. but just found it how to get it :)

{$attribute.content.enumobject_list.0.enumvalue}

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 04:26:28
Script start
Timing: Jan 18 2025 04:26:28
Module start 'layout'
Timing: Jan 18 2025 04:26:28
Module start 'content'
Timing: Jan 18 2025 04:26:29
Module end 'content'
Timing: Jan 18 2025 04:26:29
Script end

Main resources:

Total runtime0.8608 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.0050 587.9141152.6250
Module start 'layout' 0.00500.0032 740.539139.4453
Module start 'content' 0.00820.8509 779.9844500.9688
Module end 'content' 0.85910.0016 1,280.95318.1641
Script end 0.8607  1,289.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3678160.0002
Check MTime0.00130.1561160.0001
Mysql Total
Database connection0.00060.065910.0006
Mysqli_queries0.812894.4311570.0143
Looping result0.00060.0694550.0000
Template Total0.825995.920.4129
Template load0.00210.247220.0011
Template processing0.823795.698920.4119
Template load and register function0.00020.024610.0002
states
state_id_array0.00170.197410.0017
state_identifier_array0.00090.105920.0005
Override
Cache load0.00170.1985190.0001
Sytem overhead
Fetch class attribute can translate value0.00090.099420.0004
Fetch class attribute name0.00140.165940.0004
XML
Image XML parsing0.00110.133520.0006
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00120.1449160.0001
String conversion0.00000.000940.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs