- 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_Database_Driver_Mysql
Database driver for MySQL.
Located in /include/library/phpfox/database/driver/mysql.class.php (line 16)
Phpfox_Database_Dba | --Phpfox_Database_Driver_Mysql
| Class | Description |
|---|---|
Phpfox_Database_Driver_Mysqli
|
Database driver for MySQLi. This class extends the MySQL driver we provide since both function in the same way there was no need to make an extra class for MySQLi. |
unknown_type
$sSlaveServer
(line 23)
IP/Host of the slave server we are currently using.
array
$_aCmd
= array('mysql_query' => 'mysql_query',
'mysql_connect' => 'mysql_connect',
'mysql_pconnect' => 'mysql_pconnect',
'mysql_select_db' => 'mysql_select_db',
'mysql_num_rows' => 'mysql_num_rows',
'mysql_fetch_array' => 'mysql_fetch_array',
'mysql_real_escape_string' => 'mysql_real_escape_string',
'mysql_insert_id' => 'mysql_insert_id',
'mysql_fetch_assoc' => 'mysql_fetch_assoc',
'mysql_free_result' => 'mysql_free_result',
'mysql_error' => 'mysql_error',
'mysql_affected_rows' => 'mysql_affected_rows',
'mysql_get_server_info' => 'mysql_get_server_info'
) (line 53)
Holds an array of all the MySQL functions we use. We store it here because we also provide support for MySQLi, which extends this class when it use.
- Phpfox_Database_Driver_Mysqli::$_aCmd : Array of all the MySQLi functions we use. This variable overwrites the parent MySQL variable.
bool
$_bIsSlave
= false (line 44)
Check to see if we are using slave servers
resource
$_hMaster
= null (line 30)
Resource for the MySQL master server
resource
$_hSlave
= null (line 37)
Resource for the MySQL salve server
Inherited Variables
Inherited from Phpfox_Database_Dba
Phpfox_Database_Dba::$_aData
Phpfox_Database_Dba::$_aQuery
Phpfox_Database_Dba::$_aWords
addField (line 363)
Adds fields to a database table.
- array $aParams: Array of fields and what type each field is.
addIndex (line 350)
Adds an index to a table.
- string $sTable: Database table.
- string $sField: List of indexes to add.
affectedRows (line 246)
Returns the affected rows.
backup (line 486)
Performs a backup of the database and places the backup in a specific area on the server based on what the admins decide.
- string $sPath: Full path to where to place the backup.
canBackup (line 474)
Checks if we can backup the database or not. This depends on the server itself.
We currently only support unix based servers.
connect (line 80)
Makes a connection to the MySQL database
- string $sHost: Hostname or IP
- string $sUser: User used to log into MySQL server
- string $sPass: Password used to log into MySQL server. This can be blank.
- string $sName: Name of the database.
- mixed $sPort: Port number (int) or false by default since we do not need to define a port.
- bool $sPersistent: False by default but if you need a persistent connection set this to true.
dropField (line 389)
Drops a specific field from a table.
- string $sTable: Database table
- string $sField: Name of the field to drop
escape (line 202)
Prepares string to store in db (performs addslashes() )
- mixed $mParam: string or array of string need to be escaped
freeResult (line 233)
Frees the MySQL results
getLastId (line 224)
Returns row id from last executed query
getServerInfo (line 153)
Returns MySQL server information. Here we only identify that it is MySQL and the version being used.
getTableStatus (line 420)
Returns the status of the table.
getVersion (line 143)
Returns the MySQL version
isField (line 401)
Checks if a field already exists or not.
- string $sTable: Database table to check
- string $sField: Name of the field to check
isNotNull (line 338)
Check if a field in the database is set not null
- string $sField: The field we plan to check
isNull (line 327)
Check if a field in the database is set to null
- string $sField: The field we plan to check
optimizeTable (line 452)
Optimizes a table
- string $sTable: Table to optimize
query (line 166)
Performs sql query with error reporting and logging.
- string $sSql: MySQL query to perform
- resource $hLink: MySQL resource. If nothing is passed we load the default master server.
- &$hLink
repairTable (line 463)
Repairs a table
- string $sTable: Table to repair
search (line 259)
MySQL has special search functions, so we try to use that here.
- string $sType: Type of search we plan on doing.
- mixed $mFields: Array of fields to search
- string $sSearch: Value to search for.
sqlReport (line 284)
During development you may need to check how your queries are being executed and how long they are taking. This routine uses MySQL's EXPLAIN to return useful information.
- string $sQuery: MySQL query to check.
tableExists (line 431)
Checks if a database table exists.
- string $sTable: Table we are looking for.
_connect (line 566)
Makes a connection to the MySQL database
- string $sHost: Hostname or IP
- string $sUser: User used to log into MySQL server
- string $sPass: Password used to log into MySQL server. This can be blank.
- string $sName: Name of the database.
- mixed $sPort: Port number (int) or false by default since we do not need to define a port.
- bool $sPersistent: False by default but if you need a persistent connection set this to true.
_getRow (line 519)
Returns exactly one row as array. If there is number of rows satisfying the condition then the first one will be returned.
- string $sSql: select query
- string $bAssoc: type of returned rows array
- &$hLink
_getRows (line 537)
Gets data returned by sql query
- string $sSql: select query
- string $bAssoc: type of returned rows array
- &$hLink
_sqlError (line 586)
Returns any SQL errors.
Inherited Methods
Inherited From Phpfox_Database_Dba
Phpfox_Database_Dba::__construct()
Phpfox_Database_Dba::clean()
Phpfox_Database_Dba::delete()
Phpfox_Database_Dba::dropTables()
Phpfox_Database_Dba::execute()
Phpfox_Database_Dba::from()
Phpfox_Database_Dba::getField()
Phpfox_Database_Dba::getRow()
Phpfox_Database_Dba::getRows()
Phpfox_Database_Dba::getSlaveField()
Phpfox_Database_Dba::getSlaveRow()
Phpfox_Database_Dba::getSlaveRows()
Phpfox_Database_Dba::group()
Phpfox_Database_Dba::having()
Phpfox_Database_Dba::innerJoin()
Phpfox_Database_Dba::insert()
Phpfox_Database_Dba::join()
Phpfox_Database_Dba::leftJoin()
Phpfox_Database_Dba::limit()
Phpfox_Database_Dba::multiInsert()
Phpfox_Database_Dba::order()
Phpfox_Database_Dba::process()
Phpfox_Database_Dba::select()
Phpfox_Database_Dba::update()
Phpfox_Database_Dba::updateCount()
Phpfox_Database_Dba::updateCounter()
Phpfox_Database_Dba::where()
Phpfox_Database_Dba::_getField()
Phpfox_Database_Dba::_insert()
Phpfox_Database_Dba::_join()
Phpfox_Database_Dba::_update()
Documentation generated on Tue, 28 Sep 2010 10:36:42 +0200 by phpDocumentor 1.4.0a2