TemplateFile
class TemplateFile (View source)
Properties
protected BlockType | $parentObject | Stores the parent object of this template file |
|
protected string | $filename | Stores the file name |
|
protected string | $name | Stores the name of this template file |
Methods
Initializes this TemplateFile instance
Returns the parent object of this template file
Returns the file name
Returns the name of this template file
Returns the display name for this template file (localized and escaped accordingly to $format)
Returns the file name (implemented for backward compatibility with previuos BlockType->getBlockTypeCustomTemplates / BlockType->getBlockTypeComposerTemplates
Callable function used by sortTemplateFileList.
Details
__construct(BlockType $parentObject, string $filename)
Initializes this TemplateFile instance
BlockType
getTemplateFileParentObject()
Returns the parent object of this template file
string
getTemplateFileFilename()
Returns the file name
string
getTemplateFileName()
Returns the name of this template file
string
getTemplateFileDisplayName(string $format = 'html')
Returns the display name for this template file (localized and escaped accordingly to $format)
string
__toString()
Returns the file name (implemented for backward compatibility with previuos BlockType->getBlockTypeCustomTemplates / BlockType->getBlockTypeComposerTemplates
static TemplateFile[]
sortTemplateFileList(TemplateFile[] $list)
Sorts a list of TemplateFile instances
static protected int
sortTemplateFileListSorter(TemplateFile $a, TemplateFile $b)
Callable function used by sortTemplateFileList.