PHP 클래스 Neos\Neos\Command\WorkspaceCommandController

상속: extends Neos\Flow\Cli\CommandController
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$publishingService Neos\Neos\Service\PublishingService
$userService Neos\Neos\Domain\Service\UserService
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

공개 메소드들

메소드 설명
createCommand ( string $workspace, string $baseWorkspace = 'live', string $title = null, string $description = null, string $owner = '' ) : void Create a new workspace
deleteCommand ( string $workspace, boolean $force = false ) : void Deletes a workspace
discardAllCommand ( string $workspaceName, boolean $verbose = false ) : void Discard changes in workspace
discardCommand ( string $workspace, boolean $verbose = false, boolean $dryRun = false ) : void Discard changes in workspace
listCommand ( ) : void Display a list of existing workspaces
publishAllCommand ( string $workspaceName, boolean $verbose = false ) : void Publish changes of a workspace
publishCommand ( string $workspace, string $targetWorkspace = null, boolean $verbose = false, boolean $dryRun = false ) : void Publish changes of a workspace
rebaseCommand ( string $workspace, string $baseWorkspace ) : void Rebase a workspace

메소드 상세

createCommand() 공개 메소드

This command creates a new workspace.
public createCommand ( string $workspace, string $baseWorkspace = 'live', string $title = null, string $description = null, string $owner = '' ) : void
$workspace string Name of the workspace, for example "christmas-campaign"
$baseWorkspace string Name of the base workspace. If none is specified, "live" is assumed.
$title string Human friendly title of the workspace, for example "Christmas Campaign"
$description string A description explaining the purpose of the new workspace
$owner string The identifier of a User to own the workspace
리턴 void

deleteCommand() 공개 메소드

This command deletes a workspace. If you only want to empty a workspace and not delete the workspace itself, use workspace:discard instead.
public deleteCommand ( string $workspace, boolean $force = false ) : void
$workspace string Name of the workspace, for example "christmas-campaign"
$force boolean Delete the workspace and all of its contents
리턴 void

discardAllCommand() 공개 메소드

This command discards all modified, created or deleted nodes in the specified workspace.
사용 중단: since 1.2
public discardAllCommand ( string $workspaceName, boolean $verbose = false ) : void
$workspaceName string Name of the workspace, for example "user-john"
$verbose boolean If enabled, information about individual nodes will be displayed
리턴 void

discardCommand() 공개 메소드

This command discards all modified, created or deleted nodes in the specified workspace.
public discardCommand ( string $workspace, boolean $verbose = false, boolean $dryRun = false ) : void
$workspace string Name of the workspace, for example "user-john"
$verbose boolean If enabled, information about individual nodes will be displayed
$dryRun boolean If set, only displays which nodes would be discarded, no real changes are committed
리턴 void

listCommand() 공개 메소드

Display a list of existing workspaces
public listCommand ( ) : void
리턴 void

publishAllCommand() 공개 메소드

This command publishes all modified, created or deleted nodes in the specified workspace to the live workspace.
사용 중단: since 1.2
public publishAllCommand ( string $workspaceName, boolean $verbose = false ) : void
$workspaceName string Name of the workspace, for example "user-john"
$verbose boolean If enabled, information about individual nodes will be displayed
리턴 void

publishCommand() 공개 메소드

This command publishes all modified, created or deleted nodes in the specified workspace to its base workspace. If a target workspace is specified, the content is published to that workspace instead.
public publishCommand ( string $workspace, string $targetWorkspace = null, boolean $verbose = false, boolean $dryRun = false ) : void
$workspace string Name of the workspace containing the changes to publish, for example "user-john"
$targetWorkspace string If specified, the content will be published to this workspace instead of the base workspace
$verbose boolean If enabled, some information about individual nodes will be displayed
$dryRun boolean If set, only displays which nodes would be published, no real changes are committed
리턴 void

rebaseCommand() 공개 메소드

This command sets a new base workspace for the specified workspace. Note that doing so will put the possible changes contained in the workspace to be rebased into a different context and thus might lead to unintended results when being published.
public rebaseCommand ( string $workspace, string $baseWorkspace ) : void
$workspace string Name of the workspace to rebase, for example "user-john"
$baseWorkspace string Name of the new base workspace
리턴 void

프로퍼티 상세

$publishingService 보호되어 있는 프로퍼티

protected PublishingService,Neos\Neos\Service $publishingService
리턴 Neos\Neos\Service\PublishingService

$userService 보호되어 있는 프로퍼티

protected UserService,Neos\Neos\Domain\Service $userService
리턴 Neos\Neos\Domain\Service\UserService

$workspaceRepository 보호되어 있는 프로퍼티

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
리턴 Neos\ContentRepository\Domain\Repository\WorkspaceRepository