fecth all nodes from module

Author Message

Alain Mangana

Friday 04 December 2009 3:20:37 am

i need to fecth all nodes of a subtree from module. I want to retrieve all nodes visible and hidden nodes. Unfortunately I only have nodes visible. and if I set " 'is_hidden' " to "1" it gives 0 results
Here is my code

<code>

$parent=eZContentObjectTreeNode::subTreeByNodeID(
array( 'ClassFilterType' => 'include',
'ClassFilterArray' => array('47'),// nom de la classe
'Depth' => 1,
'is_hidden' => 0,
'DepthOperator' => 'eq'),
'5'// ID du noeud parent

</code>

Who can help me...
thank you

http://tikdem.com
/

Bertrand Dunogier

Friday 04 December 2009 6:03:13 am

What you're looking for is IgnoreVisibility = true

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

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

Main resources:

Total runtime0.0403 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1250151.2109
Module start 'layout' 0.00580.0056 739.3359220.6875
Module start 'content' 0.01140.0274 960.0234997.7578
Module end 'content' 0.03870.0015 1,957.781329.9922
Script end 0.0402  1,987.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00276.6484140.0002
Check MTime0.00102.5824140.0001
Mysql Total
Database connection0.00122.968510.0012
Mysqli_queries0.00368.833930.0012
Looping result0.00000.047410.0000
Template Total0.00112.710.0011
Template load0.00082.103810.0008
Template processing0.00020.613610.0002
Override
Cache load0.00061.493110.0006
General
dbfile0.010626.357880.0013
String conversion0.00000.020740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs