I'm trying to fetch content using php. But my code seems not to work. I'm using ezcontentobjecttreenode::subtree function but it displays this error:
Using $this when not in object context in /home/quejadore/site/kernel/classes/ezcontentobjecttreenode.php on line 2032
Here is my code.
$params = $nodes =& eZContentObjectTreeNode::subTree( array( 
    'Depth' => 3,
    'SortBy' => array( 'published', false),
    'Limit' => 3,
    'ClassFilterType' => 'include',
    'ClassFilterArray' => array('article_v3'),
    'Attribute_filter' => array(array('article_v3/on_newsletter', '=',true))));
$nodes =& eZContentObjectTreeNode::subTree( $params, 21312);
Anyone can help please? Thanx in advance
I have now edited my code(even if it still not working yet).Here is what i have now:
$params = array('Depth' => 3,
            'Limit' =>1,
            'IgnoreVisibility' => true,
            'Limitation' => array(),
            'ClassFilterType' => 'include',
            'ClassFilterArray' => array('article_v3'),
            'AttributeFilter' => array(array('article_v3/on_newsletter','=',true)));
$obj = new eZContentObjectTreeNode;
$nodes = $obj->subTree($params, 21312);
$dataMap =$nodes->attribute( 'data_map' );
$image =& $dataMap['image']->content();
$list =& $image->aliasList();
var_dump( $list['original']['url'] );