rebuild() public method

Perform the re-calculation of the left and right indexes of the whole nested set tree structure.
public rebuild ( ) : void
return void
Example #1
0
 /**
  * Rebuilds the structure of the current Nested Set.
  *
  * @param  bool $force
  *
  * @return void
  */
 public static function rebuild($force = false)
 {
     $builder = new SetBuilder(new static());
     $builder->rebuild($force);
 }
Example #2
0
File: Node.php Project: zorx/baum
 /**
  * Rebuilds the structure of the current Nested Set.
  *
  * @return void
  */
 public static function rebuild()
 {
     $builder = new SetBuilder(new static());
     $builder->rebuild();
 }