Author Topic

André R.

Monday 15 September 2008 3:42:05 am

Comment50132

What "ez data"?

node and object information can be returned by the eZContentObjectTreeNode::subTreeByNodeId function as array with the AsObject = false parameter.
Many fetch functions have a similar parameter to return raw mysql data instead of objects.

But you won't get the data of the attributes this way directly.

Either you can take a look at the code in ezcore (classes/ezajaxcontent.php::simplify):
http://projects.ez.no/ezcore

Or write something specific using eZContentObjectTreeNode::subTreeByNodeId + eZContentObjectAttribute::fetch with the AsObject parameters set to false.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom