Get contentclass attribute by string identifier

Author Message

Willie Seabrook

Thursday 18 December 2003 9:35:12 pm

How to do this?

$contentObjectVersion->contentObjectAttributes();

returns an array and the identifier attribute in each element is set to null.

Regards,
Willie Seabrook

Gunnstein Lye

Friday 19 December 2003 8:12:52 am

You mean content object attribute, right?

$contentObjectVersion->dataMap() returns a hash with all attributes, with identifier as key.

Willie Seabrook

Friday 19 December 2003 10:42:02 pm

Thanks,

I used a raw database call in the end due to performance. (Its going to be going through about 30000 records) And 30000 * 15 raw mysql calls should be much faster than using the ezpublish API.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.