The tree object is responsible for basic tree operations.
It allows for fetching nodes by path, facilitates deleting, copying and moving.
Methods | ||
---|---|---|
public
|
__construct(ICollection $rootNode)
|
# |
public
|
getNodeForPath(string $path): INode
|
# |
public
|
nodeExists(string $path): bool
|
# |
public
|
copy(string $sourcePath, string $destinationPath)
|
# |
public
|
move(string $sourcePath, string $destinationPath)
|
# |
public
|
delete(string $path)
|
# |
public
|
getChildren(string $path): Traversable
|
# |
public
|
markDirty(string $path)
|
# |
public
|
getMultipleNodes(array $paths): array
|
# |