how to get eZSelectionType from eZContentClassAttribute ?

Author Message

Michal Slocinski

Wednesday 26 August 2009 3:19:04 pm

Hi,

I'd like to fetch all available selection options and display them in my custom component.

I've fetched eZContentClassAttribute using:

if ( $contentClass = eZContentClass::fetch( $classID ) )
{
  $contentClassAttributeList = $contentClass->fetchAttributeByIdentifier( $attributeID );
}

but I'm not sure how to get from here to eZSelectionType and later how to extract selection options from this class.

Any suggestions are welcome.

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 16:21:24
Script start
Timing: Jan 18 2025 16:21:24
Module start 'layout'
Timing: Jan 18 2025 16:21:24
Module start 'content'
Timing: Jan 18 2025 16:21:25
Module end 'content'
Timing: Jan 18 2025 16:21:25
Script end

Main resources:

Total runtime0.5903 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.0057 589.2734152.6563
Module start 'layout' 0.00570.0033 741.929739.5078
Module start 'content' 0.00890.5798 781.4375399.9766
Module end 'content' 0.58870.0015 1,181.41418.0938
Script end 0.5902  1,189.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5315160.0002
Check MTime0.00130.2140160.0001
Mysql Total
Database connection0.00080.140610.0008
Mysqli_queries0.557794.4880460.0121
Looping result0.00040.0694440.0000
Template Total0.561195.120.2806
Template load0.00170.291320.0009
Template processing0.559394.761420.2797
Template load and register function0.00010.016110.0001
states
state_id_array0.00100.168410.0010
state_identifier_array0.00090.147120.0004
Override
Cache load0.00140.234090.0002
Sytem overhead
Fetch class attribute can translate value0.00080.136410.0008
Fetch class attribute name0.00050.085710.0005
XML
Image XML parsing0.00010.020010.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00060.1056100.0001
String conversion0.00000.002140.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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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