rebuild() public méthode

Perform the re-calculation of the left and right indexes of the whole nested set tree structure.
public rebuild ( ) : void
Résultat void
Exemple #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);
 }
Exemple #2
0
 /**
  * Rebuilds the structure of the current Nested Set.
  *
  * @return void
  */
 public static function rebuild()
 {
     $builder = new SetBuilder(new static());
     $builder->rebuild();
 }