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 )

Описание

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

Замечание

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"));
?>
    Поддержать сайт на родительском проекте КГБ