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 Description
$fileName
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 Description
$hostObj
string
$fileName
string
Returns
mixed

public static loadCached (string $hostObj, string $fileName) : mixed

Loads and caches the template.

Parameters
Property Description
$hostObj
string
$fileName
string
Returns
mixed
Copyright © 2024 Winter CMS