Fetch with contains in String

Author Message

Daniel B

Friday 18 September 2009 2:26:04 am

Good Morning

$nodes  =& eZContentObjectTreeNode::subTreeByNodeId(array('ClassFilterType' => 'include',
'ClassFilterArray' => array( 'user_group' ),  
'AttributeFilter' => array( array(
'name', '=', 'product' ) ),
'SortBy' => array( 'published', false)
),$GroupRoot);

thats working, but i need a contain-filter for the nodename. i look for "contains" but not found a solution.
Example

'name', 'contains', 'product' 

Any idea?

thx Daniel

Ivo Lukac

Friday 18 September 2009 2:49:33 am

did you try:
'name', 'like', '*product*'

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Daniel B

Friday 18 September 2009 3:31:21 am

Strike Ivo

Thanks

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

Main resources:

Total runtime1.1433 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.0068 587.9141152.6250
Module start 'layout' 0.00680.0030 740.539139.4453
Module start 'content' 0.00981.1322 779.9844534.8984
Module end 'content' 1.14200.0013 1,314.88288.1641
Script end 1.1433  1,323.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3167160.0002
Check MTime0.00150.1298160.0001
Mysql Total
Database connection0.00070.060710.0007
Mysqli_queries1.096495.8967570.0192
Looping result0.00060.0492550.0000
Template Total1.104496.620.5522
Template load0.00220.189320.0011
Template processing1.102296.407120.5511
Template load and register function0.00020.013510.0002
states
state_id_array0.00170.151010.0017
state_identifier_array0.00150.135420.0008
Override
Cache load0.00180.1613170.0001
Sytem overhead
Fetch class attribute can translate value0.00090.074620.0004
Fetch class attribute name0.00120.108040.0003
XML
Image XML parsing0.00070.057420.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00120.1031170.0001
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/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs