ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
By implementing this interface, a collection can effectively say "other nodes may be moved into this collection". More...
Public Member Functions | |
moveInto ($targetName, $sourcePath, INode $sourceNode) | |
Moves a node into this collection. More... | |
![]() | |
createFile ($name, $data=null) | |
Creates a new file in the directory. More... | |
createDirectory ($name) | |
Creates a new subdirectory. More... | |
getChild ($name) | |
Returns a specific child node, referenced by its name. More... | |
getChildren () | |
Returns an array with all the child nodes. More... | |
childExists ($name) | |
Checks if a child-node with the specified name exists. More... | |
![]() | |
delete () | |
Deleted the current node. More... | |
getName () | |
Returns the name of the node. More... | |
setName ($name) | |
Renames the node. More... | |
getLastModified () | |
Returns the last modification time, as a unix timestamp. More... | |
By implementing this interface, a collection can effectively say "other nodes may be moved into this collection".
The benefit of this, is that sabre/dav will by default perform a move, by transferring an entire directory tree, copying every collection, and deleting every item.
If a backend supports a better optimized move operation, this can trigger some huge speed gains.
Definition at line 20 of file IMoveTarget.php.
Sabre\DAV\IMoveTarget::moveInto | ( | $targetName, | |
$sourcePath, | |||
INode | $sourceNode | ||
) |
Moves a node into this collection.
It is up to the implementors to:
Generally you should make very sure that your collection can easily move the move.
If you don't, just return false, which will trigger sabre/dav to handle the move itself. If you return true from this function, the assumption is that the move was successful.
string | $targetName | New local file/collection name. |
string | $sourcePath | Full path to source node |
INode | $sourceNode | Source node itself |