Method | Description | |
---|---|---|
__construct ( |
||
copyLocale ( string $uuid, integer $userId, string $srcLocale, string $destLocales ) : |
Copy snippet from src-locale to dest-locale. | |
getReferences ( string $uuid ) : PHPCR\NodeInterface[] | Return the nodes which refer to the structure with the given UUID. | |
getSnippets ( string $locale, string $type = null, integer $offset = null, integer $max = null, string $search = null, string $sortBy = null, string $sortOrder = null ) : |
Return snippets. | |
getSnippetsAmount ( string $locale, string $type = null, string $search = null, string $sortBy = null, string $sortOrder = null ) : |
Return snippets amount. | |
getSnippetsByUuids ( array $uuids, string $locale, boolean $loadGhostContent = false ) : |
Return snippets identified by the given UUIDs. |
Method | Description | |
---|---|---|
getSnippetsQuery ( string $locale, string $type = null, integer $offset = null, integer $max = null, string $search = null, string $sortBy = null, string $sortOrder = null ) : |
Return snippets load query. |
public __construct ( |
||
$sessionManager | ||
$contentMapper | ||
$documentManager | Sulu\Component\DocumentManager\DocumentManager |
public getReferences ( string $uuid ) : PHPCR\NodeInterface[] | ||
$uuid | string | |
return | PHPCR\NodeInterface[] |
public getSnippets ( string $locale, string $type = null, integer $offset = null, integer $max = null, string $search = null, string $sortBy = null, string $sortOrder = null ) : |
||
$locale | string | |
$type | string | Optional snippet type |
$offset | integer | Optional offset |
$max | integer | Optional max |
$search | string | |
$sortBy | string | |
$sortOrder | string | |
return |
public getSnippetsAmount ( string $locale, string $type = null, string $search = null, string $sortBy = null, string $sortOrder = null ) : |
||
$locale | string | |
$type | string | Optional snippet type |
$search | string | |
$sortBy | string | |
$sortOrder | string | |
return |