Class File

When activating a theme, any file within the theme is loaded into the system as a Page Theme File. At that point the file can then be used to create a new page type.

Namespace: Concrete\Core\Page\Theme
Package: Pages\Themes
Located at src/Page/Theme/File.php

Methods summary

public
# setFilename( $filename )

Sets the filename of this object to the passed parameter.

public
# setType( $type )

Sets the type of file for this object to one of the constants.

public string
# getFilename( )

Gets the filename for this theme file object.

public string
# getType( )

Gets the type of file for this object.

public string
# getHandle( )

Returns just the part of the filename prior to the extension

Constants summary

integer TFTYPE_VIEW

Type of page corresponding to the view template (used by single pages in this theme). Typically that means this template file is "view.php"

# 1
integer TFTYPE_DEFAULT

Type of page corresponding to the default page type. If a page type doesn't have a template in a particular theme, default is used.

# 2
integer TFTYPE_SINGLE_PAGE

If this is used to designate what type of template this is, this means it corresponds to a single page like "login.php"

# 3
integer TFTYPE_PAGE_TEMPLATE_NEW

This is a template for a page - one that hasn't been previously created in the system.

# 4
integer TFTYPE_PAGE_TEMPLATE_EXISTING

This is a template for a page that already exists in the system.

# 5
integer TFTYPE_PAGE_CLASS

A custom class for a page theme.

# 6

Properties summary

protected $filename
#
protected $type
#