- Description
-
Class trees
Index of elements
Todo List
Interfaces
Phpfox_Cache_Interface
Phpfox_Database_Interface
Phpfox_Gateway_Interface
Phpfox_Image_Interface
Phpfox_Mail_Interface
Classes
Database_Driver_Mssql
Database_Driver_Oracle
Database_Driver_Postgres
Database_Driver_Sqlite
Phpfox
Phpfox_Ajax
Phpfox_Api
Phpfox_Archive
Phpfox_Archive_Export
Phpfox_Archive_Extension_Tar
Phpfox_Archive_Extension_Xml
Phpfox_Archive_Extension_Zip
Phpfox_Archive_Import
Phpfox_Archive_Support
Phpfox_Cache
Phpfox_Cache_Abstract
Phpfox_Cache_Storage_File
Phpfox_Cache_Storage_Memcache
Phpfox_Cdn
Phpfox_Cdn_Abstract
Phpfox_Cdn_Module_S3
Phpfox_Component
Phpfox_Cron
Phpfox_Database
Phpfox_Database_Dba
Phpfox_Database_Driver_Mysql
Phpfox_Database_Driver_Mysqli
Phpfox_Database_Export
Phpfox_Database_Support
Phpfox_Date
Phpfox_Debug
Phpfox_Diff_Md5
Phpfox_Editor
Phpfox_Error
Phpfox_File
Phpfox_File_Minimize
Phpfox_Ftp
Phpfox_Gateway
Phpfox_Gateway_Api_2checkout
Phpfox_Gateway_Api_Paypal
Phpfox_Hash
Phpfox_Image
Phpfox_Image_Abstract
Phpfox_Image_Helper
Phpfox_Image_Library_Gd
Phpfox_Locale
Phpfox_Mail
Phpfox_Mail_Driver_Phpmailer_Mail
Phpfox_Mail_Driver_Phpmailer_Smtp
Phpfox_Module
Phpfox_Pager
Phpfox_Parse_Bbcode
Phpfox_Parse_Css
Phpfox_Parse_Format
Phpfox_Parse_Input
Phpfox_Parse_Output
Phpfox_Parse_Wiki
Phpfox_Plugin
Phpfox_Process
Phpfox_Request
Phpfox_Search
Phpfox_Search_Inline
Phpfox_Server
Phpfox_Service
Phpfox_Session
Phpfox_Session_Handler
Phpfox_Session_Handler_Default
Phpfox_Session_Handler_File
Phpfox_Session_Handler_Memcache
Phpfox_Session_Storage_Cookie
Phpfox_Session_Storage_Session
Phpfox_Setting
Phpfox_Spam
Phpfox_Spam_Hash
Phpfox_Template
Phpfox_Url
Phpfox_Validator
Phpfox_Xml_Builder
Phpfox_Xml_Parser
Functions
d
e
p
Files
2checkout.class.php
abstract.class.php
abstract.class.php
abstract.class.php
ajax.class.php
api.class.php
archive.class.php
bbcode.class.php
builder.class.php
cache.class.php
cdn.class.php
component.class.php
cookie.class.php
cron.class.php
css.class.php
database.class.php
date.class.php
dba.class.php
debug.class.php
default.class.php
editor.class.php
error.class.php
export.class.php
export.class.php
file.class.php
file.class.php
file.class.php
format.class.php
ftp.class.php
gateway.class.php
gd.class.php
handler.class.php
hash.class.php
hash.class.php
helper.class.php
image.class.php
import.class.php
inline.class.php
input.class.php
interface.class.php
interface.class.php
interface.class.php
interface.class.php
interface.class.php
locale.class.php
mail.class.php
mail.class.php
md5.class.php
memcache.class.php
memcache.class.php
minimize.class.php
module.class.php
mssql.class.php
mysql.class.php
mysqli.class.php
oracle.class.php
output.class.php
pager.class.php
parser.class.php
paypal.class.php
phpfox.class.php
plugin.class.php
postgres.class.php
process.class.php
request.class.php
s3.class.php
search.class.php
server.class.php
service.class.php
session.class.php
session.class.php
setting.class.php
smtp.class.php
spam.class.php
sqlite.class.php
support.class.php
support.class.php
tar.class.php
template.class.php
url.class.php
validator.class.php
wiki.class.php
xml.class.php
zip.class.php
Template-
Classes
Phpfox_Template_Cache
Files
cache.class.php
Phpfox_Template
Template Loads all templates and converts it into PHP code and then caches it.
Class is also able to:
- Assign variables to templates.
- Identify a pages title.
- Identify a pages breadcrumb structure.
- Create meta tags.
- Load CSS and JavaScript files.
Located in /include/library/phpfox/template/template.class.php (line 24)
| Class | Description |
|---|---|
Phpfox_Template_Cache
|
Template Cache Class handles the caching of a template file and converts any custom code into PHP code. Class is only loaded if the template cache file does not exist. |
static string
$_sStaticThemeFolder
= null (line 244)
Static variable of the current theme folder.
bool
$bIsSample
= false (line 38)
Check to see if we are displaying a sample page.
int
$iThemeId
= 0 (line 45)
Theme ID#
string
$sDisplayLayout
= 'template' (line 31)
Default template name.
string
$sLeftDelim
= '{' (line 59)
Left delimiter for custom functions. It is: {
string
$sReservedVarname
= 'phpfox' (line 52)
Reserved variable name. Which is $phpfox.
string
$sRightDelim
= '}' (line 66)
Right delimiter for custom functions. It is: }
array
$_aBreadCrumbs
= array() (line 108)
List of breadcrumbs.
array
$_aBreadCrumbTitle
= array() (line 115)
Information about the title of the current page, which is part of the breadcrumb.
array
$_aCacheHeaders
= array() (line 222)
Cache of all the <head></head> content being loaded.
array
$_aEditor
= array() (line 178)
Information about the text editor.
array
$_aHeaders
= array() (line 101)
List of data to add within the templates HTML <head></head>.
array
$_aImages
= array() (line 215)
List of images to be loaded and converted into a JavaScript object.
array
$_aMeta
= array() (line 164)
List of meta data.
array
$_aMobileHeaders
= array() (line 236)
Mobile headers.
array
$_aNewUrl
= array() (line 201)
Rebuild URL brought from cache.
array
$_aPhrases
= array() (line 171)
List of phrases to load and create JavaScript variables for.
array
$_aPlugins
= array() (line 73)
List of plugins.
array
$_aRemoveUrl
= array() (line 208)
Remove URL brought from cache.
array
$_aSections
= array() (line 80)
List of sections.
array
$_aTheme
= array('theme_parent_id' => 0
) (line 192)
Information about the current theme we are using.
array
$_aTitles
= array() (line 94)
List of titles assigned to a page.
array
$_aVars
= array('bUseFullSite' => false) (line 87)
List of all the variables assigned to templates.
bool
$_bIsAdminCp
= false (line 136)
Check to see if a template is part of the AdminCP.
bool
$_bIsTestMode
= false (line 229)
Check to see if we are currently in test mode.
int
$_iCacheTime
= 60 (line 122)
Default file cache time.
bool
$_sSetLayout
= false (line 129)
Override the layout of the current theme being used.
string
$_sStyleFolder
(line 157)
Folder of the style being used.
string
$_sThemeFolder
(line 143)
Folder of the theme being used.
string
$_sThemeLayout
(line 150)
Theme layout to load.
string
$_sUrl
= null (line 185)
URL of the current page we are on.
Constructor __construct (line 251)
Class constructor we use to build the current theme and style we are using.
- Phpfox_Template_Cache::__construct() : Class constructor. Build all the regex we will be using with this class.
assign (line 1535)
Assign a variable so we can use it within an HTML template.
PHP assign:
HTML usage:
- {$foo}
- // Above will output: bar
- mixed $mVars: STRING variable name or ARRAY of variables to assign with both keys and values.
- string $sValue: Variable value, only if the 1st argument is a STRING.
clean (line 1567)
Clean all or a specific variable from memory.
- mixed $mName: Variable name to destroy, or leave blank to destory all variables or pass an ARRAY of variables to destroy.
clearBreadCrumb (line 648)
Clear the breadcrumb information.
getBreadCrumb (line 639)
Get all the breadcrumbs we have loaded so far.
getBuiltTemplate (line 1730)
Get a template that has already been built.
- string $sLayout: Template name.
- string $sCacheName: Cache name of the file.
getHeader (line 900)
Gets any data we plan to place within the HTML tags <head></head>.
This method also groups the data to give the template a nice clean look.
getHeaderFile (line 1423)
Get the template header file if it exists.
getKeywords (line 801)
Gets all the keywords from a string.
- string $sTitle: Title to parse.
getLayout (line 1594)
Loads the current template.
- string $sName: Layout name.
- bool $bReturn: TRUE to return the template code, FALSE will echo it.
getLayoutFile (line 1610)
Get the full path of the current layout file.
- string $sName: Name of the layout file.
getMenu (line 1860)
Gets all the sites custom menus, such as the Main, Header, Footer and Sub menus.
Since information is stored in the database we cache the information so we only run the query once.
- sting $sConnection: Current page we are viewing (Example: account/login)
getMobileHeader (line 859)
Gets any data we plan to place within the HTML tags <head></head> for mobile devices.
This method also groups the data to give the template a nice clean look.
getStyle (line 1442)
Gets the full path of a file based on the current style being used.
- string $sType: Type of file we are working with.
- string $sValue: File name.
- string $sModule: Module name. Only if its part of a module.
getStyleLogo (line 518)
Get the logo for the site based on the style being used.
getTemplate (line 1771)
Get the current template data.
- string $sTemplate: Template name.
- bool $bReturn: TRUE to return its content or FALSE to just echo it.
getTemplateFile (line 1637)
Get the full path to the modular template file we are loading.
- string $sTemplate: Name of the file.
- bool $bCheckDb: TRUE to check the database if the file exists there.
getThemeCache (line 428)
Get the cached information about the theme we are using.
getThemeFolder (line 508)
Get the theme folder being used.
getThemeLayout (line 418)
Get the current theme we are using.
getTitle (line 767)
Get the title for the current page beind displayed.
All titles are added earlier in the script using self::setTitle(). Each title is split with a delimiter specificed from the Admin CP.
getVar (line 1557)
Get a variable we assigned with the method assign().
- string $sName: Variable name.
getXml (line 2103)
Load and get the XML information about the theme used when custom designing a profile.
- string $sXml: XML id.
rebuildMenu (line 1831)
Rebuild a cached menu.
- string $sConnection: Menu connection.
- array $aNewUrl: ARRAY of the new values.
removeUrl (line 1845)
Remove a URL from a built cached menu.
- string $sConnection: Menu connection.
- string $sUrl: URL value to identify what menu to remove.
setBreadCrumb (line 616)
Sets the breadcrumb structure for the site.
- string $sPhrase: Breadcrumb title.
- string $sLink: Breadcrumb link.
- bool $bIsTitle: TRUE if this is the title breadcrumb for the page.
setEditor (line 747)
Set settings for the text editor in use.
- array $aParams: ARRAY of settings.
setFullSite (line 565)
Force the page to use its full width and not display anything within the sidepanel.
setHeader (line 692)
All data placed between the HTML tags <head></head> can be added with this method.
Since we rely on custom templates we need the header data to be custom as well. Current support is for: css & JavaScript All HTML added here is coded under XHTML standards.
- unknown_type $mHeaders
- $mValue
setImage (line 403)
Sets all the images we plan on using within JavaScript.
PHP usage:
In JavaScript the above image can be accessed by:
- oJsImages['layout_sample_image'];
- unknown_type $aImages
setLayout (line 555)
Override the layout of the site.
- string $sName: Layout we should load.
setMeta (line 831)
Set all the meta tags to be used on the site.
- array $mMeta: ARRAY of meta tags.
- string $sValue: Value of meta tags in case the 1st argument is a string.
setMobileHeader (line 729)
All data placed between the HTML tags <head></head> can be added with this method for mobile devices.
Since we rely on custom templates we need the header data to be custom as well. Current support is for: css & JavaScript All HTML added here is coded under XHTML standards.
- unknown_type $mHeaders
- $mValue
setPhrase (line 578)
Sets phrases we can later use in JavaScript.
- array $mPhrases: ARRAY of pharses to build.
setStyle (line 438)
Override the current theme.
- array $aTheme: ARRAY of values to override.
setTemplate (line 675)
Set the current template for the site.
- string $sLayout: Template name.
setTitle (line 662)
Set the page title in a public array so we can get it later and display within the template.
- string $sTitle: Title to display on a specific page
setUrl (line 2090)
Set the current URL for the site.
- string $sUrl: URL value.
testStyle (line 453)
Test a style by attempting to load and display it for the user.
This is used when a user is trying to demo a style.
- int $iId: ID of the style.
_getCachedName (line 2235)
Gets the full path of the cached template file
- string $sName: Name of the template
_getFromCache (line 2174)
Gets a template file from cache. If the file does not exist we re-cache the template.
- string $sFile: Full path of the template we are loading.
_getMenu (line 2143)
Get a menu.
- string $sConnection: Connection for the menu.
- int $iParent: Parent ID# number for the menu.
_isCached (line 2203)
Checks to see if a template has already been cached or not.
- string $sName: Full path to the template file.
_register (line 2240)
- $sType
- $sFunction
- $sImplementation
_returnLayout (line 2160)
Returns the content of a template that has already been echoed.
Documentation generated on Tue, 28 Sep 2010 10:36:44 +0200 by phpDocumentor 1.4.0a2
static