CmsObject
interface Cms\Contracts\CmsObject
Methods
public getBaseFileName () : string
Returns the file name without the extension.
Returns
string
public getContent () : string
Returns the file content.
Returns
string
public getFileName () : string
Returns the file name.
Returns
string
public
getFilePath (string $fileName = null
)
: string
Returns the local file path to the template.
Parameters
Property | Type | Description |
---|---|---|
$fileName | string |
string
|
Returns
string
public getTwigCacheKey () : string
Returns the key used by the Twig cache.
Returns
string
public getTwigContent () : string
Returns the Twig content string.
Returns
string
public static load (string $hostObj, string $fileName) : mixed
Loads the template.
Parameters
Property | Type | Description |
---|---|---|
$hostObj | string |
string
|
$fileName | string |
string
|
Returns
mixed
public static loadCached (string $hostObj, string $fileName) : mixed
Loads and caches the template.
Parameters
Property | Type | Description |
---|---|---|
$hostObj | string |
string
|
$fileName | string |
string
|
Returns
mixed
Copyright © 2023 Winter CMS