Property | Type | Description | |
---|---|---|---|
$childrenKeyName | string | Children key name. | |
$node | Node instance for reference. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 | ||
return | void |
public getChildrenKeyName ( ) : string | ||
return | string |
protected mapTreeRecursive ( array $tree, $parentKey = null, &$affectedKeys = [] ) : boolean | ||
$tree | array | |
return | boolean |
protected wrapInTransaction ( Closure $callback ) | ||
$callback | Closure |
protected string $childrenKeyName | ||
return | string |