fixChildren

Description

This function recursively updates the children of parent's childLevel and ID_PARENT to newLevel and newParent. It is used when a board is deleted or moved, to affect its children.

Syntax

void fixChildren (int $parent, int $newLevel[, int $newParent])



Parameter $parent

Expected type: Integer
Description: The ID of the (current) parent board



Parameter $newLevel

Expected type: Integer
Description: The new child level for all the boards



Parameter $newParent

Expected type: Integer
Description: If set, the ID of the new parent board.


Advertisement: