Forums / Developer / Help: need to know object id...

Help: need to know object id...

Author Message

Ulitsa Tal Arik

Wednesday 30 November 2005 9:31:50 pm

i create the object (programmaticaly), and the system automaticaly give id to this object.

how i can know it?

Ɓukasz Serwatka

Wednesday 30 November 2005 11:02:35 pm

Use id attribute.

[...]
$contentObject =& $class->instantiate( $userID, $sectionID );
//ID
$contentObject->attribute( 'id' );

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Ulitsa Tal Arik

Friday 02 December 2005 1:09:43 am

Thnks, Lukasz :)