PHP Interface Sulu\Bundle\ContentBundle\Repository\ResourceLocatorRepositoryInterface

显示文件 Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
delete ( string $path, string $webspaceKey, string $languageCode, null | string $segmentKey = null ) : mixed deletes given resource locator.
generate ( string[] $parts, null | string $parentUuid, string $webspaceKey, string $languageCode, string $templateKey, null | string $segmentKey = null ) : string generates a resource locator with given title.
getHistory ( string $uuid, string $webspaceKey, string $languageCode ) : array

Method Details

delete() public method

deletes given resource locator.
public delete ( string $path, string $webspaceKey, string $languageCode, null | string $segmentKey = null ) : mixed
$path string
$webspaceKey string
$languageCode string
$segmentKey null | string
return mixed

generate() public method

generates a resource locator with given title.
public generate ( string[] $parts, null | string $parentUuid, string $webspaceKey, string $languageCode, string $templateKey, null | string $segmentKey = null ) : string
$parts string[] parts of title
$parentUuid null | string uuid of parent node (can be null)
$webspaceKey string
$languageCode string
$templateKey string
$segmentKey null | string
return string

getHistory() public method

public getHistory ( string $uuid, string $webspaceKey, string $languageCode ) : array
$uuid string
$webspaceKey string
$languageCode string
return array