bool
DB_NestedSet::updateNode
(
int
$id
,
array
$values
,
$_internal
= false
,
bool
$_intermal
)
This package is not documented yet.
$id
Node ID
$values
Hash with param => value pairs of the node (see $this->params)
$_internal
Internal use only.
$_intermal
Internal use only. Used to skip value validation. Leave this as it is.
returns True if the update is successful
throws no exceptions thrown
This function can not be called statically.
Update nodes
<?php
require_once('DB/NestedSet.php');
$nestedSet =& DB_NestedSet::factory('DB', $dsn, $params);
$nestedSet->createSubNode($id, array('name' => "rootnode"));
$nestedSet->updateNode($id, array('name' => "new name"));
?>