Свойство | Тип | Описание | |
---|---|---|---|
$childrenKeyName | string | Children key name. | |
$node | Node instance for reference. |
Метод | Описание | |
---|---|---|
__construct ( |
Create a new \Baum\SetBuilder class instance. | |
getChildrenKeyName ( ) : string | Returns the children key name to use on the mapping array. | |
map ( $nodeList ) : boolean | Maps a tree structure into the database. Unguards & wraps in transaction. | |
mapTree ( $nodeList ) : boolean | Maps a tree structure into the database without unguarding nor wrapping inside a transaction. |
Метод | Описание | |
---|---|---|
deleteUnaffected ( $keys = [] ) | ||
firstOrNew ( $attributes ) | ||
getDataAttributes ( $attributes ) | ||
getSearchAttributes ( $attributes ) | ||
mapTreeRecursive ( array $tree, $parentKey = null, &$affectedKeys = [] ) : boolean | Maps a tree structure into the database. | |
pruneScope ( ) | ||
wrapInTransaction ( Closure $callback ) |
public __construct ( |
||
$node | ||
Результат | void |
public getChildrenKeyName ( ) : string | ||
Результат | string |
protected mapTreeRecursive ( array $tree, $parentKey = null, &$affectedKeys = [] ) : boolean | ||
$tree | array | |
Результат | boolean |
protected wrapInTransaction ( Closure $callback ) | ||
$callback | Closure |
protected string $childrenKeyName | ||
Результат | string |