eZContentObjectTreeNode::subTree AttributeFilter problem!

Author Message

Siniša Šehović

Wednesday 13 December 2006 2:25:56 am

Hi

I have one strange problem and really need some help!

ez 3.8.6

I have this code that works:

$nodes =& eZContentObjectTreeNode::subTree(  array( 'Depth' => 0, 'ClassFilterType' => 'include', 'ClassFilterArray' => array( 16 ), 'MainNodeOnly' => true, 'Limitation' => array() ), 60 );

But if I try this:

$nodes =& eZContentObjectTreeNode::subTree(  array( 'Depth' => 0, 'ClassFilterType' => 'include', 'ClassFilterArray' => array( 16 ),'AttributeFilter'=>array(array('197','=',220)), 'MainNodeOnly' => true, 'Limitation' => array() ), 60 );

AttributeFilter is not working.
Variable $nodes is empty?

What is wrong?
Please help!

Best regards,
Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

Siniša Šehović

Wednesday 13 December 2006 7:17:17 am

Hi

SOLVED!

I was using wrong id!

That was my mistake!:-(

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

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

Main resources:

Total runtime0.7793 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1563152.6563
Module start 'layout' 0.00510.0025 740.812539.5078
Module start 'content' 0.00770.7703 780.3203492.3281
Module end 'content' 0.77800.0013 1,272.64848.0938
Script end 0.7793  1,280.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3860160.0002
Check MTime0.00120.1579160.0001
Mysql Total
Database connection0.00060.080610.0006
Mysqli_queries0.732693.9995520.0141
Looping result0.00050.0626500.0000
Template Total0.743995.520.3719
Template load0.00220.285720.0011
Template processing0.741695.164920.3708
Template load and register function0.00010.010810.0001
states
state_id_array0.00120.155510.0012
state_identifier_array0.00150.189220.0007
Override
Cache load0.00180.2280250.0001
Sytem overhead
Fetch class attribute can translate value0.00050.061910.0005
Fetch class attribute name0.00090.115630.0003
XML
Image XML parsing0.00030.039010.0003
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00080.0987150.0001
String conversion0.00000.000840.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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
4content/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: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs