DB_NestedSet::deleteNode
DB_NestedSet::deleteNode() – Deletes a node
Synopsis
require_once 'DB/NestedSet.php';
bool
DB_NestedSet::deleteNode
(
int
$id
)
Описание
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
Замечание
This function can not be called statically.
Пример
Delete nodes
<?php
require_once('DB/NestedSet.php');
$nestedSet =& DB_NestedSet::factory('DB', $dsn, $params);
$nestedSet->createRootNode(array('name' => 'root-node'), false, true);
$nestedSet->deleteNode($id);
?>