DB_NestedSet::updateNode

DB_NestedSet::updateNode() – Changes the payload of a node

Synopsis

require_once 'DB/NestedSet.php';

bool DB_NestedSet::updateNode ( int $id , array $values , $_internal = false , bool $_intermal )

Description

This package is not documented yet.

Parameter

integer $id

Node ID

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

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"));
?>
Triggers and event an calls the event listeners (Previous) DB_Pager (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.