Share » Forums » Developer » Creating an eZEnumObjectValue

Creating an eZEnumObjectValue

Creating an eZEnumObjectValue

Sunday 01 June 2003 8:21:40 pm - 1 reply

Modified on Sunday 01 June 2003 8:32:26 pm by Rib Rdb

Author Message

Rib Rdb

Sunday 01 June 2003 9:28:06 pm

Well, I got what I asked for. Here's the modified code that works, if anyone else is trying this:

$attributes = $version->contentObjectAttributes();
$attribute = $attributes[0];
$enum = $attribute->content();
$enumobjectList = $enum->attribute('enumobject_list');
$enumobjectList[0] =&
eZEnumObjectValue::create(
$attribute->attribute('id'),
$attribute->attribute('version'),
$ids[$Rating],
$elements[$Rating],
$values[$Rating]);
$enumobjectList[0]->store();

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu