示例#1
0
文件: Node.php 项目: lostcause/baum
 /**
  * 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);
 }
示例#2
0
文件: Node.php 项目: zorx/baum
 /**
  * Rebuilds the structure of the current Nested Set.
  *
  * @return void
  */
 public static function rebuild()
 {
     $builder = new SetBuilder(new static());
     $builder->rebuild();
 }