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 :)

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 19:15:55
Script start
Timing: Jan 18 2025 19:15:55
Module start 'layout'
Timing: Jan 18 2025 19:15:55
Module start 'content'
Timing: Jan 18 2025 19:15:55
Module end 'content'
Timing: Jan 18 2025 19:15:55
Script end

Main resources:

Total runtime0.0228 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.0469152.6406
Module start 'layout' 0.00770.0043 740.687539.4766
Module start 'content' 0.01200.0079 780.164189.3672
Module end 'content' 0.01990.0029 869.531334.3047
Script end 0.0228  903.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003012.9306140.0002
Check MTime0.00145.9420140.0001
Mysql Total
Database connection0.00114.958910.0011
Mysqli_queries0.003415.038630.0011
Looping result0.00000.113710.0000
Template Total0.002410.610.0024
Template load0.00135.860610.0013
Template processing0.00114.757510.0011
Override
Cache load0.00104.578010.0010
General
dbfile0.002410.703780.0003
String conversion0.00000.042840.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