previousDB_NestedSet::triggerEvent (Previous) (Next) DB_Pagernext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

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"));
?>
previousDB_NestedSet::triggerEvent (Previous) (Next) DB_Pagernext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.