Forums / Developer / How to get the class id from php ?!

"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 the class id from php ?!

Author Message

Selmah Maxim

Wednesday 18 June 2003 8:30:12 am

I need to get the class id, any function exists for this ?

$node =& eZContentObject::fetch( $node_id);
$classcontent = & $node->contentClass();
foreach($classcontent as $attName=>$attVlaue)
{
$Class["$attName"] = $attVlaue;
}

this what am using, better way ?!

 

Selmah Maxim

Saturday 21 June 2003 12:41:06 am

Hi ..

No one knows ?! :(

Anyway from user interface it`s work fine , but from admin face i get empty vars !

Am sure there is better way ... any help ?!

Selmah Maxim

Saturday 21 June 2003 12:58:43 am

what i found ...

for users just this will work :
$node =& eZContentObject::fetch( $NodeID );

and admin :
$node =& eZContentObjectTreeNode::fetch( $NodeID );

any idea ?!?