- 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
phpFox Engine All interactions with anything phpFox related is executed via this class.
It is the engine that runs phpFox and all of the other libraries and modules. All methods, variables and constants are static.
All libraries are located within the folder: include/library/phpfox/ Example of connect to request library:
Located in /include/library/phpfox/phpfox/phpfox.class.php (line 25)
static object We
getComponent
(string $sClass, [array $aParams = array()], [string $sType = 'block'])
static string
getPhrase
(string $sParam, [array $aParams = array()], [bool $bNoDebug = false], [string $sDefault = null], [string $sLang = ''])
static array
$_aLibs
= array() (line 76)
ARRAY of libraries being loaded.
static array
$_aLogs
= array() (line 97)
History of any logs we save for debug purposes.
static unknown_type
$_aObject
= array() (line 69)
ARRAY of objects initiated. Used to keep a static history so we don't call the same class more then once.
static array
$_aPages
= array() (line 83)
ARRAY of custom pages the site admins have created.
static bool
$_bIsAdminCp
= false (line 90)
Used to keep a static variable to see if we are within the AdminCP.
static addMessage (line 1234)
Add a public message which can be used later on to display information to a user.
Message gets stored in a $_SESSION so the message can be viewed after page reload in case it is used with a HTML form.
- string $sMsg: Message we plan to display to the user
static callback (line 355)
- string $sCall
static clearMessage (line 1255)
Clear the public message we set earlier
static endLog (line 1318)
End the log and get it.
static getBlock (line 345)
- string $sClass
- array $aParams
static getBuild (line 139)
Get the products build number.
static getCleanVersion (line 149)
Get the clean numerical value of the phpFox version.
static getCodeName (line 129)
Get the products code name.
static getComponent (line 402)
- string $sClass: Class name.
- array $aParams: ARRAY of params you can pass to the component.
- string $sType: Type of component (block or controller).
static getComponentSetting (line 414)
- int $iUserId
- string $sVarName
- mixed $mDefaultValue
static getCookie (line 1281)
Gets a cookie set by the method self::setCookie().
- string $sName: Name of the cookie.
static getId (line 119)
Get the current phpFox version ID.
static getIp (line 472)
static getLib (line 306)
Get a phpFox library. This includes the class file and creates the object for you.
Example usage:
In the example we called the URL library found in the folder: include/library/phpfox/url/url.class.php then created an object for it so we could directly call the method "makeUrl".- string $sClass: Library class name.
- array $aParams: ARRAY of params you can pass to the library.
static getLibClass (line 258)
Fine and load a library class and make sure it exists.
- string $sClass: Library class name.
static getMessage (line 1245)
Get the public message we setup earlier
static getObject (line 205)
Gets and creates an object for a class.
- string $sClass: Class name.
- array $aParams: Params to pass to the class.
static getParam (line 247)
- string $sVar
static getPhrase (line 1210)
- string $sParam
- array $aParams
- bool $bNoDebug
- string $sDefault
- string $sLang
static getPhraseT (line 1221)
- string $sParam
- string $sPrefix
static getService (line 425)
- string $sClass
- array $aParams
static getT (line 436)
Builds a database table prefix.
- string $sTable: Database table name.
static getTime (line 569)
Gets a time stamp, Works similar to PHP date() function.
We also take into account locale and time zone settings.
- string $sStamp: Time stamp format.
- int $iTime: UNIX epoch time stamp.
static getTimeZone (line 555)
- bool $bDst
static getUserBy (line 454)
- $sVar
static getUserField (line 509)
Get all the user fields when joining with the user database table.
- string $sAlias: Table alias. User table alias by default is "u".
- string $sPrefix: Prefix for each of the fields.
static getUserGroupParam (line 755)
- int $iGroupId
- string $sName
static getUserId (line 445)
static getUserParam (line 769)
Get a user group setting.
- string $sName: User group param name.
- bool $bRedirect: TRUE will redirect the user to a subscribtion page if they do not have access to the param.
- mixed $sJsCall: NULL will do nothing, however a STRING JavaScript code will run the code instead of a redirection.
static getVersion (line 104)
Get the current phpFox version.
static hasCallback (line 390)
- string $sModule
- string $sMethod
static isAdmin (line 713)
Used to see if a user is an Admin. By passing the first argument as TRUE we can also do an auto redirect to guide the user to login first before using a feature in the AdminCP.
- bool $bRedirect: User will be redirected to the AdminCP login page if they are not logged int.
static isAdminPanel (line 871)
Check to see if we are in the AdminCP or not.
static isMobile (line 463)
static isModule (line 334)
- string $sModule
static isPackage (line 171)
Check if a feature can be used based on the package the client has installed.
Example (STRING):
Example (ARRAY):
- mixed $mPackage: STRING can be used to pass the package ID, or an ARRAY to pass multipl packages.
static isPublicView (line 881)
Check to see if items are to be displayed in a public manner or within a persons profile.
static isSpammer (line 482)
Checks to see if the user that is logged in has been marked as a spammer.
static isUser (line 683)
Used to see if a user is logged in or not. By passing the first argument as TRUE we can also do an auto redirect to guide the user to login first before using a feature.
- bool $bRedirect: User will be redirected to the login page if they are not logged int.
static itemUrl (line 737)
Creates a URL for an item that is connected with a users profile.
- string $sUrl: URL
- array $mParams: URL params.
- string $sUserName: Users vanity user name.
static link (line 193)
Provide "powered by" link.
- bool $bLink: TRUE to include a link to phpFox.
- bool $bVersion: TRUE to include the version being used.
static log (line 1308)
Log a message.
- string $sLog: Message to the log.
static massCallback (line 372)
- string $sMethod
static run (line 890)
Starts the phpFox engine. Used to get and display the pages controller.
static setCookie (line 1268)
Set a cookie with PHP setcookie()
- string $sName: The name of the cookie.
- string $sValue: The value of the cookie.
- int $iExpire: The time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch.
static startLog (line 1293)
Start a new log.
- string $sLog: Message to the log.
BROWSER_AGENT
= 'phpFox'
(line 43)
Browser agent used with API curl requests.
CODE_NAME
= 'Arctic'
(line 37)
Product Code Name
PHPFOX_API
= 'http://api.phpfox.com/deepspace/'
(line 55)
phpFox API server.
PHPFOX_PACKAGE
= '[PHPFOX_PACKAGE_NAME]'
(line 61)
phpFox package ID.
PRODUCT_BUILD
= '1'
(line 49)
Product build number.
VERSION
= '2.0.6'
(line 30)
Product Version : major.minor.maintenance [alphaX, betaX or rcX]
Documentation generated on Tue, 28 Sep 2010 10:36:43 +0200 by phpDocumentor 1.4.0a2
static