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 :)

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

eZ debug

Timing: Jan 18 2025 19:24:12
Script start
Timing: Jan 18 2025 19:24:12
Module start 'layout'
Timing: Jan 18 2025 19:24:12
Module start 'content'
Timing: Jan 18 2025 19:24:13
Module end 'content'
Timing: Jan 18 2025 19:24:13
Script end

Main resources:

Total runtime1.2976 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9141152.6250
Module start 'layout' 0.00590.0035 740.539139.4453
Module start 'content' 0.00941.2866 779.9844539.6484
Module end 'content' 1.29600.0016 1,319.63288.1641
Script end 1.2976  1,327.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2580160.0002
Check MTime0.00140.1113160.0001
Mysql Total
Database connection0.00080.059310.0008
Mysqli_queries1.246096.0194570.0219
Looping result0.00060.0434550.0000
Template Total1.259597.120.6298
Template load0.00210.160720.0010
Template processing1.257496.903820.6287
Template load and register function0.00010.009610.0001
states
state_id_array0.00150.112710.0015
state_identifier_array0.00190.149720.0010
Override
Cache load0.00170.1315130.0001
Sytem overhead
Fetch class attribute can translate value0.00090.067120.0004
Fetch class attribute name0.00120.094150.0002
XML
Image XML parsing0.00130.099320.0006
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00120.0909240.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs