Forums / Developer / How remove all objects in one node via PHP?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How remove all objects in one node via PHP?

Author Message

Ulitsa Tal Arik

Thursday 15 December 2005 7:00:58 am

Hi people! How to remove all objects in one node?

Gabriel Ambuehl

Thursday 15 December 2005 12:06:46 pm

Generally, there's exactly ONE content object per node...

Visit http://triligon.org

Bruce Morrison

Thursday 15 December 2005 3:54:06 pm

Howdy

I'm assuming that you want to remove all child nodes (and corresponding objects) of a particular node.

Have a look at
http://pubsvn.ez.no/doxygen/classeZContentObjectTreeNode.html
http://pubsvn.ez.no/doxygen/classeZContentObject.html

and

http://pubsvn.ez.no/nextgen/trunk/kernel/content/removenode.php
http://pubsvn.ez.no/nextgen/trunk/kernel/content/removeobject.php

If you still are having problems let me know and I'll see if I can whip up some sample code.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Ulitsa Tal Arik

Thursday 15 December 2005 10:46:53 pm

Thanks! everything work fine :)