init() init( $arr = array()) : $this 初始化方法 注意,参数一定要是数组,数据库select()->toArray();否则调用getRootTree会内存溢出 Parameters $arr Returns $this
getChildIds() getChildIds( $ids, boolean $withSelf = true) : array 获取某ID的所有子级ID Parameters $ids string|array 要查询子级的ID boolean $withSelf 返回的结果是否包含$ids Returns array
getParentIds() getParentIds( $ids, boolean $withSelf = true) : array 获取某ID的所有父级ID Parameters $ids string|array 要查询父级的ID boolean $withSelf 返回的结果是否包含$id Returns array