Class PageThemeFile

Description

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.

Located in /models/page_theme.php (line 83)


	
			
Class Constant Summary
Variable Summary
 mixed $filename
 mixed $type
Method Summary
 string getFilename ()
 string getHandle ()
 string getType ()
 void setFilename ( $filename)
 void setType ( $type)
Variables
mixed $filename (line 85)
  • access: protected
mixed $type (line 86)
  • access: protected
Methods
getFilename (line 132)

Gets the filename for this theme file object.

  • access: public
string getFilename ()
getHandle (line 144)

Returns just the part of the filename prior to the extension

  • access: public
string getHandle ()
getType (line 138)

Gets the type of file for this object.

  • access: public
string getType ()
setFilename (line 118)

Sets the filename of this object to the passed parameter.

  • access: public
void setFilename ( $filename)
  • $filename
setType (line 125)

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

  • access: public
void setType ( $type)
  • $type
Class Constants
TFTYPE_DEFAULT = 2 (line 96)

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.

TFTYPE_PAGE_TYPE_EXISTING = 5 (line 111)

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

TFTYPE_PAGE_TYPE_NEW = 4 (line 106)

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

TFTYPE_SINGLE_PAGE = 3 (line 101)

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

TFTYPE_VIEW = 1 (line 91)

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

Documentation generated on Thu, 15 Sep 2011 16:36:29 -0700 by phpDocumentor 1.4.1