PHP Интерфейс Jackalope\Transport\WorkspaceManagementInterface

Наследование: extends Jackalope\Transport\TransportInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

createWorkspace() публичный Метод

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() публичный Метод

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.