PHP Interface Jackalope\Transport\WorkspaceManagementInterface

Inheritance: extends Jackalope\Transport\TransportInterface
Show file Open project: jackalope/jackalope

Public Methods

Method Description
createWorkspace ( string $name, string $srcWorkspace = null ) Creates a new Workspace with the specified name. The new workspace is empty, meaning it contains only root node.
deleteWorkspace ( string $name ) Deletes the workspace with the specified name from the repository, deleting all content within it.

Method Details

createWorkspace() public method

If srcWorkspace is given: Creates a new Workspace with the specified name initialized with a clone of the content of the workspace srcWorkspace. Semantically, this method is equivalent to creating a new workspace and manually cloning srcWorkspace to it; however, this method may assist some implementations in optimizing subsequent Node.update and Node.merge calls between the new workspace and its source. The new workspace can be accessed through a login specifying its name.
public createWorkspace ( string $name, string $srcWorkspace = null )
$name string A String, the name of the new workspace.
$srcWorkspace string The name of the workspace from which the new workspace is to be cloned.

deleteWorkspace() public method

Deletes the workspace with the specified name from the repository, deleting all content within it.
public deleteWorkspace ( string $name )
$name string The name of the workspace.