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

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 ?!?