PHP Interface Sulu\Bundle\SnippetBundle\Snippet\DefaultSnippetManagerInterface

Afficher le fichier Open project: sulu/sulu Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

load() public méthode

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

loadIdentifier() public méthode

Loads identifier for given type.
public loadIdentifier ( string $webspaceKey, string $type ) : string
$webspaceKey string
$type string
Résultat string

remove() public méthode

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

save() public méthode

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
Résultat Sulu\Bundle\SnippetBundle\Document\SnippetDocument