DB_NestedSet::deleteNode

DB_NestedSet::deleteNode() – Deletes a node

Synopsis

require_once 'DB/NestedSet.php';

bool DB_NestedSet::deleteNode ( int $id )

Description

This package is not documented yet.

Parameter

integer $id

ID of the node to be deleted

Return value

returns True if the delete succeeds

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Example

Delete nodes

<?php
require_once('DB/NestedSet.php');
    
$nestedSet =& DB_NestedSet::factory('DB'$dsn$params);
    
$nestedSet->createRootNode(array('name' => 'root-node'), falsetrue);
    
$nestedSet->deleteNode($id);
?>
Creates a subnode (Previous) Handles the returning of a concrete instance of DB_NestedSet based on the driver. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.