Forums / Developer / Fetch all draft objects - possible?

Fetch all draft objects - possible?

Author Message

Nicklas Lundgren

Saturday 13 January 2007 8:01:29 am

Hi,

Im writing an export script, exporting a certain type of content objects to xml.
However - as the content objects still are drafts when I want to export them - I think I have a problem.

I need to get all the drafts of a certain class, no matter which user has created them.

I know about the
fetch( 'content', 'draft_version_list', hash...

But this only fetches drafts from current user. I want to fetch them all.

Any suggestions on how to achieve this?

Thanks in advance - and best regards,
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

kracker (the)

Saturday 13 January 2007 12:20:20 pm

If it was me, I'd start by writing a custom php-cli eZ 'script' to provide this without use of template language using only php no tpl.
If the client was paying for it i might write a 'cronjob' and possibly a 'module' all within an extension.

<i>//kracker
it's really just something to do when the music as turned your ears against your mind early morning just rubbing they sleep out your eyes. but when i am standing on a the soap box holding a boombox playing anything from sole that's able to be throwing drops like bombs blowing out speakers and your ...</i>

<i>Sole : Selling live water</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/