How can i display node date from cli?

Author Message

luis muñoz

Tuesday 29 August 2006 10:18:13 am

I have a question

With a code like this:

$nodeArray =& eZContentObjectTreeNode::subTree( array(  
		'ClassFilterType' => 'include',
		'ClassFilterArray' => $classID,
		'Depth' => $depth,  ), $parentNodeID  );
	foreach (array_keys( $nodeArray ) as $key ){
		$node =& $nodeArray[$key];
                                $objectName =& $node->attribute('name');
		$objectDate =& $node->attribute('Published');
		$objectModified =& $node->attribute('Modified');
		echo("$i -- $objectName -- $objectDate -- $objectModified\n");
                 }

I get the name of the object, but date and modified date are not displayed and don't know why or how to make date and modified date visible.

Any idea?

thanks

Paul Borgermans

Tuesday 29 August 2006 11:48:20 am

Hi Luis

I think it is just a problem of case: eg Published should be published
or

$objectDate =& $node->attribute('published');

hth

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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

Main resources:

Total runtime0.6836 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9375152.6250
Module start 'layout' 0.00630.0040 740.562539.4453
Module start 'content' 0.01020.6721 780.0078525.9297
Module end 'content' 0.68230.0012 1,305.93758.1563
Script end 0.6835  1,314.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4821160.0002
Check MTime0.00140.1990160.0001
Mysql Total
Database connection0.00100.145510.0010
Mysqli_queries0.633292.6313540.0117
Looping result0.00070.0956520.0000
Template Total0.649595.020.3248
Template load0.00240.357420.0012
Template processing0.647194.653820.3235
Template load and register function0.00030.037710.0003
states
state_id_array0.00080.122010.0008
state_identifier_array0.00080.110220.0004
Override
Cache load0.00200.2854170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.110520.0004
Fetch class attribute name0.00170.245530.0006
XML
Image XML parsing0.00070.101220.0003
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00080.1146170.0000
String conversion0.00000.001640.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs