PHP Interface Sulu\Bundle\SnippetBundle\Snippet\DefaultSnippetManagerInterface

ファイルを表示 Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
isDefault ( string $uuid ) : boolean Returns true if given uuid is a default snippet.
load ( string $webspaceKey, string $type, string $locale ) : SnippetDocument Load default snippet for given type.
loadIdentifier ( string $webspaceKey, string $type ) : string Loads identifier for given type.
remove ( string $webspaceKey, string $type ) Remove default snippet for given type.
save ( string $webspaceKey, string $type, string $uuid, string $locale ) : SnippetDocument Save default snippet for given type.

Method Details

isDefault() public method

Returns true if given uuid is a default snippet.
public isDefault ( string $uuid ) : boolean
$uuid string
return boolean

load() public method

Load default snippet for given type.
public load ( string $webspaceKey, string $type, string $locale ) : SnippetDocument
$webspaceKey string
$type string
$locale string
return Sulu\Bundle\SnippetBundle\Document\SnippetDocument

loadIdentifier() public method

Loads identifier for given type.
public loadIdentifier ( string $webspaceKey, string $type ) : string
$webspaceKey string
$type string
return string

remove() public method

Remove default snippet for given type.
public remove ( string $webspaceKey, string $type )
$webspaceKey string
$type string

save() public method

Save default snippet for given type.
public save ( string $webspaceKey, string $type, string $uuid, string $locale ) : SnippetDocument
$webspaceKey string
$type string
$uuid string
$locale string
return Sulu\Bundle\SnippetBundle\Document\SnippetDocument