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
Exemplo n.º 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);
 }
Exemplo n.º 2
0
Arquivo: Node.php Projeto: zorx/baum
 /**
  * Rebuilds the structure of the current Nested Set.
  *
  * @return void
  */
 public static function rebuild()
 {
     $builder = new SetBuilder(new static());
     $builder->rebuild();
 }