This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Model_PageThemeFile

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.

Direct known subclasses

PageThemeFile

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_TYPE_NEW

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

# 4
integer TFTYPE_PAGE_TYPE_EXISTING

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

# 5

Properties summary

protected $filename
#
protected $type
#