filter fetch on object creator

Author Message

James Ward

Tuesday 05 August 2008 11:04:41 am

Is it possible to fetch a group of objects based on the user which created them? I'm trolling the documentation but not seeing anything.

working at www.wardnet.com
blogging at www.jamesward.ca

James Ward

Tuesday 05 August 2008 11:25:08 am

Looks like I should be able to do this but the documentation is a little confusing.

"The ID number of the object representing the user who initially created the object (the "owner_id" attribute of the corresponding "ezcontentobject" object). "

Does that mean I am filtering using the node_id of the creator user object or the object_id of the creator user object? I'm testing now and not having much luck. An example would be nice.

working at www.wardnet.com
blogging at www.jamesward.ca

Maxime Thomas

Thursday 28 August 2008 11:19:03 pm

Hi,

You can try a list fetch with an attribute filter wither the owner variable set.

http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list

It will fetch nodes directly under the node you provide from the same user (owner).

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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 31 2025 00:16:24
Script start
Timing: Jan 31 2025 00:16:24
Module start 'layout'
Timing: Jan 31 2025 00:16:24
Module start 'content'
Timing: Jan 31 2025 00:16:24
Module end 'content'
Timing: Jan 31 2025 00:16:24
Script end

Main resources:

Total runtime0.0235 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.1328151.2109
Module start 'layout' 0.00460.0036 739.3438220.6875
Module start 'content' 0.00820.0138 960.0313997.6953
Module end 'content' 0.02210.0014 1,957.726633.9922
Script end 0.0235  1,991.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002410.4273140.0002
Check MTime0.00104.3390140.0001
Mysql Total
Database connection0.00083.302910.0008
Mysqli_queries0.002510.542030.0008
Looping result0.00000.042610.0000
Template Total0.00104.310.0010
Template load0.00083.209610.0008
Template processing0.00021.059410.0002
Override
Cache load0.00052.191810.0005
General
dbfile0.002410.161480.0003
String conversion0.00000.030440.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.0001 secs