Property | Type | Description | |
---|---|---|---|
$snippets |
Method | Description | |
---|---|---|
clearCache ( Cms\Classes\Theme $theme ) | Clears front-end run-time cache. | |
findByCodeOrComponent ( Cms\Classes\Theme $theme, string $code, $componentClass, boolean $allowCaching = false ) : array | Finds a snippet by its code. | |
getPartialSnippetMap ( Cms\Classes\Theme $theme ) : Returns | Returns a list of partial-based snippets and corresponding partial names. | |
listSnippets ( Cms\Classes\Theme $theme ) : array | Returns a list of available snippets. |
Method | Description | |
---|---|---|
getPartialMapCacheKey ( $theme ) | Returns a cache key for this record. | |
listComponentSnippets ( ) : array | Returns a list of snippets created from components. | |
listThemeSnippets ( Cms\Classes\Theme $theme ) : array | Returns a list of snippets in the specified theme. |
public static clearCache ( Cms\Classes\Theme $theme ) | ||
$theme | Cms\Classes\Theme | Specifies a parent theme. |
public findByCodeOrComponent ( Cms\Classes\Theme $theme, string $code, $componentClass, boolean $allowCaching = false ) : array | ||
$theme | Cms\Classes\Theme | Specifies a parent theme. |
$code | string | Specifies the snippet code. |
$allowCaching | boolean | Specifies whether caching is allowed for the call. |
return | array | Returns an array of Snippet objects. |
protected static getPartialMapCacheKey ( $theme ) |
public getPartialSnippetMap ( Cms\Classes\Theme $theme ) : Returns | ||
$theme | Cms\Classes\Theme | Specifies a parent theme. |
return | Returns | an associative array with the snippet code in keys and partial file names in values. |
protected listComponentSnippets ( ) : array | ||
return | array | Returns an array of Snippet objects. |
public listSnippets ( Cms\Classes\Theme $theme ) : array | ||
$theme | Cms\Classes\Theme | Specifies a parent theme. |
return | array | Returns an unsorted array of snippet objects. |
protected listThemeSnippets ( Cms\Classes\Theme $theme ) : array | ||
$theme | Cms\Classes\Theme | Specifies a parent theme. |
return | array | Returns an array of Snippet objects. |