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

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 18:16:49
Script start
Timing: Jan 18 2025 18:16:49
Module start 'layout'
Timing: Jan 18 2025 18:16:49
Module start 'content'
Timing: Jan 18 2025 18:16:50
Module end 'content'
Timing: Jan 18 2025 18:16:50
Script end

Main resources:

Total runtime0.9855 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9219152.6250
Module start 'layout' 0.00520.0062 740.546939.4453
Module start 'content' 0.01140.9727 779.9922435.1719
Module end 'content' 0.98410.0014 1,215.16418.1563
Script end 0.9855  1,223.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3488160.0002
Check MTime0.00170.1693160.0001
Mysql Total
Database connection0.00070.072610.0007
Mysqli_queries0.936795.0436550.0170
Looping result0.00070.0757530.0000
Template Total0.940795.520.4704
Template load0.00280.288220.0014
Template processing0.937995.164220.4689
Template load and register function0.00010.011210.0001
states
state_id_array0.00220.219610.0022
state_identifier_array0.00150.153120.0008
Override
Cache load0.00250.2490240.0001
Sytem overhead
Fetch class attribute can translate value0.00050.049910.0005
Fetch class attribute name0.00120.120030.0004
XML
Image XML parsing0.00010.011710.0001
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00090.0937100.0001
String conversion0.00000.000940.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs