DB_NestedSet::updateNode()
-- Changes the payload of a node
Description
This package is not documented yet.
Parameter
- array
$values
Hash with param => value pairs of the node (see $this->params)
-
$_internal
Internal use only.
- boolean
$_intermal
Internal use only. Used to skip value validation. Leave this as it is.
Return value
returns
True if the update is successful
Throws
throws
no exceptions thrown
Note
This function can not be called
statically.
Example
Example 36-1. Update nodes 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")); |
|