- 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_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.
Located in /include/library/phpfox/template/cache.class.php (line 20)
Phpfox_Template | --Phpfox_Template_Cache
mixed
compile
(string $sName, [string $sData = null], [bool $bRemoveHeader = false], [bool $bSkipDbCheck = false])
bool
_compileCustomFunction
(string $sFunction, string $sModifiers, string $sArguments, &$sResult, string $sResult)
array
$_aForeachElseStack
= array() (line 27)
Foreach stack.
array
$_aLiterals
= array() (line 62)
Literal blocks. {literal}{/literal}
array
$_aModuleBlocks
= array() (line 55)
Module blocks.
array
$_aPhpBlocks
= array() (line 41)
PHP blocks. {php}{/php}
array
$_aRequireStack
= array() (line 34)
Require stack.
array
$_aSectionelseStack
= array() (line 48)
Section blocks. {section}{/section}
string
$_sDbQstrRegexp
= '"[^"\\\\]*(?:\\\\.[^"\\\\]*)*"' (line 69)
String regex.
string
$_sFuncRegexp
= '[a-zA-Z_]+' (line 97)
Function regex.
string
$_sSiQstrRegexp
= '\'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\'' (line 76)
String regex.
string
$_sSvarRegexp
= '\%\w+\.\w+\%' (line 90)
Variable regex.
string
$_sVarBracketRegexp
= '\[[\$|\#]?\w+\#?\]' (line 83)
Bracket regex.
Inherited Variables
Inherited from Phpfox_Template
Phpfox_Template::$bIsSample
Phpfox_Template::$iThemeId
Phpfox_Template::$sDisplayLayout
Phpfox_Template::$sLeftDelim
Phpfox_Template::$sReservedVarname
Phpfox_Template::$sRightDelim
Phpfox_Template::$_aBreadCrumbs
Phpfox_Template::$_aBreadCrumbTitle
Phpfox_Template::$_aCacheHeaders
Phpfox_Template::$_aEditor
Phpfox_Template::$_aHeaders
Phpfox_Template::$_aImages
Phpfox_Template::$_aMeta
Phpfox_Template::$_aMobileHeaders
Phpfox_Template::$_aNewUrl
Phpfox_Template::$_aPhrases
Phpfox_Template::$_aPlugins
Phpfox_Template::$_aRemoveUrl
Phpfox_Template::$_aSections
Phpfox_Template::$_aTheme
Phpfox_Template::$_aTitles
Phpfox_Template::$_aVars
Phpfox_Template::$_bIsAdminCp
Phpfox_Template::$_bIsTestMode
Phpfox_Template::$_iCacheTime
Phpfox_Template::$_sSetLayout
Phpfox_Template::$_sStaticThemeFolder
Phpfox_Template::$_sStyleFolder
Phpfox_Template::$_sThemeFolder
Phpfox_Template::$_sThemeLayout
Phpfox_Template::$_sUrl
Constructor __construct (line 103)
Class constructor. Build all the regex we will be using with this class.
- Phpfox_Template::__construct()
- Class constructor we use to build the current theme and style we are using.
compile (line 125)
Compile a template file and cache it to a PHP flat file.
- string $sName: Name of the template.
- string $sData: Contents of the template.
- bool $bRemoveHeader: TRUE to remove the time stamp we added to the header of each cache file.
- bool $bSkipDbCheck: TRUE to skip checks on the database to see if the cache file exists there as well.
getAll (line 200)
Get all the template files that have been cached.
parse (line 262)
Parse a templates content and convert it into PHP.
- string $sData: Content of the template.
- bool $bRemoveHeader: TRUE to remove cache headers in the template.
remove (line 234)
Remove a cache file or the entire directory.
- mixed $sName: Pass nothing to remove all cached files, or the STRING name of the file to just remove that file.
_compileCustomFunction (line 1456)
Compile custom function into the template it is loaded in.
- string $sFunction: Name of the function.
- string $sModifiers: Modifier to load.
- string $sArguments: Arguments of the function.
- string $sResult: Converted string of the PHP function.
- &$sResult
_compileIf (line 1500)
Compile IF statments.
- string $sArguments: If statment arguments.
- bool $bElseif: TRUE if this is an ELSEIF.
- bool $bWhile: TRUE of this is a WHILE loop.
_compileParseIsExpr (line 1622)
Compile IF statment expressions.
- string $sIsArg: If expression arguments.
- string $aArgs: Arguments.
_compileSectionStart (line 1696)
Complie sections {section}{/section}
- string $sArguments: Section arguments.
_compileTag (line 363)
Compile custom tags. (eg. {literal})
- string $sTag: Name of the tag to parse.
_compileVariable (line 1134)
Compile all variables.
- string $sVariable: Variable name.
_parse (line 276)
Parse a templates content and convert it into PHP.
- string $sData: Content of the template.
- bool $bRemoveHeader: TRUE to remove cache headers in the template.
_parseArgs (line 1018)
Parse arguments. (eg. {for bar1=sample1 bar2=sample2}
- string $sArguments: Arguments to parse.
_parseForm (line 344)
Parse HTML forms. This is where we automatically add our security token.
- string $sForm: Form attributes.
- string $sData: Contents of the form.
_parseFunction (line 389)
Parse all the custom tags used within templates. In templates we do not use conventional PHP code as we seperate PHP logic from the template. The tags we use work similar to that off SMARTY.
- string $sFunction: Name of the function.
- string $sModifiers: Modifiers.
- string $sArguments: Any arguments we are passing.
_parseModifier (line 1229)
Parse modifiers.
- string $sVariable: Variable name.
- string $sModifiers: Modifiers.
_parseVariable (line 1116)
Parse a specific variable.
- string $sVariable: Name of the variable we are parsing.
_parseVariables (line 1093)
Parse variables.
- array $aVariables: ARRAY of variables.
- array $aModifiers: ARRAY of modifiers.
_plugin (line 1414)
Load custom plug-ins.
NOTE: This is not in use yet.
- string $sFunction: Custom function name.
- string $sType: Type of function.
_removeQuote (line 1817)
Remove quotes from PHP variables.
- string $string: PHP variable to work with.
Inherited Methods
Inherited From Phpfox_Template
Phpfox_Template::__construct()
Phpfox_Template::assign()
Phpfox_Template::clean()
Phpfox_Template::clearBreadCrumb()
Phpfox_Template::getBreadCrumb()
Phpfox_Template::getBuiltTemplate()
Phpfox_Template::getHeader()
Phpfox_Template::getHeaderFile()
Phpfox_Template::getKeywords()
Phpfox_Template::getLayout()
Phpfox_Template::getLayoutFile()
Phpfox_Template::getMenu()
Phpfox_Template::getMobileHeader()
Phpfox_Template::getStyle()
Phpfox_Template::getStyleLogo()
Phpfox_Template::getTemplate()
Phpfox_Template::getTemplateFile()
Phpfox_Template::getThemeCache()
Phpfox_Template::getThemeFolder()
Phpfox_Template::getThemeLayout()
Phpfox_Template::getTitle()
Phpfox_Template::getVar()
Phpfox_Template::getXml()
Phpfox_Template::rebuildMenu()
Phpfox_Template::removeUrl()
Phpfox_Template::setBreadCrumb()
Phpfox_Template::setEditor()
Phpfox_Template::setFullSite()
Phpfox_Template::setHeader()
Phpfox_Template::setImage()
Phpfox_Template::setLayout()
Phpfox_Template::setMeta()
Phpfox_Template::setMobileHeader()
Phpfox_Template::setPhrase()
Phpfox_Template::setStyle()
Phpfox_Template::setTemplate()
Phpfox_Template::setTitle()
Phpfox_Template::setUrl()
Phpfox_Template::testStyle()
Phpfox_Template::_getCachedName()
Phpfox_Template::_getFromCache()
Phpfox_Template::_getMenu()
Phpfox_Template::_isCached()
Phpfox_Template::_register()
Phpfox_Template::_returnLayout()
Documentation generated on Tue, 28 Sep 2010 10:36:37 +0200 by phpDocumentor 1.4.0a2