Methods

Delete the specified template(s)

delete(string | array | null $title, integer | array | null $styleId, string | array | null $languageId) 

Each parameter can be passed as - a scalar (to match that parameter) - null (to use a wildcard for that parameter) - an array of scalars (to match multiple specific items)

Parameters

$title

stringarraynull

$styleId

integerarraynull

$languageId

stringarraynull

Get the file name of the specified template

get(string $title, integer $styleId, integer $languageId) : string

Parameters

$title

string

$styleId

integer

$languageId

integer

Returns

string

getInstance()

getInstance() 

Save the specified template

save(string $title, integer $styleId, integer $languageId, string $template) : string

Parameters

$title

string

$styleId

integer

$languageId

integer

$template

string

Returns

string$filename

_createTemplateDirectory()

_createTemplateDirectory() 

_deleteTemplate()

_deleteTemplate($title, $styleId, $languageId) 

see \global\XenForo_Template_FileHandler::delete

Parameters

$title

$styleId

$languageId

Prepares a glob-friendly filename or wildcard for the specified template(s)

_getFileName(string $title, integer $styleId, integer $languageId) : string

Parameters

$title

string

$styleId

integer

$languageId

integer

Returns

string

Takes a parameter for the filename and turns it into an array of parameters

_prepareWildcard(mixed $item) : array

Parameters

$item

mixed

Returns

array

_saveTemplate()

_saveTemplate($title, $styleId, $languageId, $template) 

see \global\XenForo_Template_FileHandler::save

Parameters

$title

$styleId

$languageId

$template

__construct()

__construct() 

 Properties

 

$_instance

$_instance 

 

$_path

$_path