Forums / Developer / how to get eZSelectionType from eZContentClassAttribute ?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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.