Public Member Functions | |
| __construct ($auto_connect=TRUE) | |
| create () | |
| __connect ($connection) | |
| _afterConnect ($connection) | |
| _close ($connection) | |
| addQuotes ($string) | |
| _begin ($transactionLevel=0) | |
| _rollback ($transactionLevel=0) | |
| _commit () | |
| __query ($query, $connection) | |
| _fetch ($result, $arrayIndexEndValue=NULL) | |
| getNextSequence () | |
| isValidOldPassword ($password, $saved_password) | |
| isTableExists ($target_name) | |
| addColumn ($table_name, $column_name, $type= 'number', $size= '', $default=null, $notnull=false) | |
| dropColumn ($table_name, $column_name) | |
| isColumnExists ($table_name, $column_name) | |
| addIndex ($table_name, $index_name, $target_columns, $is_unique=false) | |
| dropIndex ($table_name, $index_name, $is_unique=false) | |
| isIndexExists ($table_name, $index_name) | |
| createTableByXml ($xml_doc) | |
| createTableByXmlFile ($file_name) | |
| _createTable ($xml_doc) | |
| _executeInsertAct ($queryObject, $with_values=true) | |
| _executeUpdateAct ($queryObject, $with_values=true) | |
| _executeDeleteAct ($queryObject, $with_values=true) | |
| _executeSelectAct ($queryObject, $connection=null, $with_values=true) | |
| db_insert_id () | |
| db_fetch_object (&$result) | |
| db_free_result (&$result) | |
| & | getParser ($force=FALSE) |
| queryError ($queryObject) | |
| queryPageLimit ($queryObject, $result, $connection, $with_values=true) | |
| getSelectPageSql ($query, $with_values=true, $start_count=0, $list_count=0) | |
Public Member Functions inherited from DB | |
| getInstance ($db_type=NULL) | |
| create () | |
| __construct () | |
| getSupportedList () | |
| _getSupportedList () | |
| _sortDBMS ($a, $b) | |
| isSupported () | |
| isConnected ($type= 'master', $indx=0) | |
| actStart ($query) | |
| actFinish () | |
| setQueryLog ($log) | |
| setError ($errno=0, $errstr= 'success') | |
| isError () | |
| getError () | |
| executeQuery ($query_id, $args=NULL, $arg_columns=NULL, $type=NULL) | |
| checkQueryCacheFile ($query_id, $xml_file) | |
| _executeQuery ($cache_file, $source_args, $query_id, $arg_columns, $type) | |
| getCountCache ($tables, $condition) | |
| putCountCache ($tables, $condition, $count=0) | |
| resetCountCache ($tables) | |
| dropTable ($table_name) | |
| getSelectSql ($query, $with_values=TRUE) | |
| getClickCountQuery ($queryObject) | |
| getDeleteSql ($query, $with_values=TRUE, $with_priority=FALSE) | |
| getUpdateSql ($query, $with_values=TRUE, $with_priority=FALSE) | |
| getInsertSql ($query, $with_values=TRUE, $with_priority=FALSE) | |
| _getSlaveConnectionStringIndex () | |
| _getConnection ($type= 'master', $indx=NULL) | |
| _dbInfoExists () | |
| _close ($connection) | |
| close ($type= 'master', $indx=0) | |
| _begin ($transactionLevel=0) | |
| begin () | |
| _rollback ($transactionLevel=0) | |
| rollback () | |
| _commit () | |
| commit ($force=FALSE) | |
| __query ($query, $connection) | |
| _query ($query, $connection=NULL) | |
| _setDBInfo () | |
| __connect ($connection) | |
| _afterConnect ($connection) | |
| _connect ($type= 'master', $indx=0) | |
| actDBClassStart () | |
| actDBClassFinish () | |
| getParser ($force=FALSE) | |
Public Attributes | |
| $prefix = 'xe_' | |
| $comment_syntax = '/* %s */' | |
| $column_type | |
Public Attributes inherited from DB | |
| $priority_dbms | |
| $count_cache_path = 'files/cache/db' | |
| $cond_operation | |
| $master_db = NULL | |
| $slave_db = NULL | |
| $result = NULL | |
| $errno = 0 | |
| $errstr = '' | |
| $query = '' | |
| $connection = '' | |
| $elapsed_time = 0 | |
| $elapsed_dbclass_time = 0 | |
| $transaction_started = FALSE | |
| $is_connected = FALSE | |
| $cache_file = 'files/cache/queries/' | |
| $db_type | |
| $use_prepared_statements | |
Additional Inherited Members | |
Static Public Member Functions inherited from DB | |
| static | getEnableList () |
| static | getDisableList () |
Static Public Attributes inherited from DB | |
| static | $isSupported = FALSE |
| static | $supported_list = array() |
Definition at line 14 of file DBMysql.class.php.
| DBMysql::__construct | ( | $auto_connect = TRUE | ) |
| DBMysql::__connect | ( | $connection | ) |
DB Connect this method is private
| array | $connection | connection's value is db_hostname, db_port, db_database, db_userid, db_password |
Definition at line 67 of file DBMysql.class.php.
| DBMysql::__query | ( | $query, | |
| $connection | |||
| ) |
Execute the query this method is private
| string | $query | |
| resource | $connection |
Definition at line 182 of file DBMysql.class.php.
| DBMysql::_afterConnect | ( | $connection | ) |
If have a task after connection, add a taks in this method this method is private
| resource | $connection |
Definition at line 110 of file DBMysql.class.php.
| DBMysql::_begin | ( | $transactionLevel = 0 | ) |
DB transaction start this method is private
Definition at line 150 of file DBMysql.class.php.
| DBMysql::_close | ( | $connection | ) |
DB disconnection this method is private
| resource | $connection |
Definition at line 122 of file DBMysql.class.php.
| DBMysql::_commit | ( | ) |
DB transaction commit this method is private
Definition at line 170 of file DBMysql.class.php.
| DBMysql::_createTable | ( | $xml_doc | ) |
Create table by using the schema xml
type : number, varchar, tinytext, text, bigtext, char, date,
opt : notnull, default, size
index : primary key, index, unique
| string | $xml_doc | xml schema contents |
Definition at line 477 of file DBMysql.class.php.
| DBMysql::_executeDeleteAct | ( | $queryObject, | |
$with_values = true |
|||
| ) |
Handles deleteAct
| BaseObject | $queryObject | |
| boolean | $with_values |
Definition at line 603 of file DBMysql.class.php.
| DBMysql::_executeInsertAct | ( | $queryObject, | |
$with_values = true |
|||
| ) |
Handles insertAct
| BaseObject | $queryObject | |
| boolean | $with_values |
Definition at line 565 of file DBMysql.class.php.
| DBMysql::_executeSelectAct | ( | $queryObject, | |
$connection = null, |
|||
$with_values = true |
|||
| ) |
Handle selectAct In order to get a list of pages easily when selecting
it supports a method as navigation
| BaseObject | $queryObject | |
| resource | $connection | |
| boolean | $with_values |
Definition at line 623 of file DBMysql.class.php.
| DBMysql::_executeUpdateAct | ( | $queryObject, | |
$with_values = true |
|||
| ) |
Handles updateAct
| BaseObject | $queryObject | |
| boolean | $with_values |
Definition at line 582 of file DBMysql.class.php.
| DBMysql::_fetch | ( | $result, | |
$arrayIndexEndValue = NULL |
|||
| ) |
Fetch the result
| resource | $result | |
| int | NULL | $arrayIndexEndValue |
Definition at line 205 of file DBMysql.class.php.
| DBMysql::_rollback | ( | $transactionLevel = 0 | ) |
DB transaction rollback this method is private
Definition at line 160 of file DBMysql.class.php.
| DBMysql::addColumn | ( | $table_name, | |
| $column_name, | |||
$type = 'number', |
|||
$size = '', |
|||
$default = null, |
|||
$notnull = false |
|||
| ) |
Add a column to the table
| string | $table_name | table name |
| string | $column_name | column name |
| string | $type | column type, default value is 'number' |
| int | $size | column size |
| string | int | $default | default value |
| boolean | $notnull | not null status, default value is false |
Definition at line 302 of file DBMysql.class.php.
| DBMysql::addIndex | ( | $table_name, | |
| $index_name, | |||
| $target_columns, | |||
$is_unique = false |
|||
| ) |
Add an index to the table $target_columns = array(col1, col2) $is_unique? unique : none
| string | $table_name | table name |
| string | $index_name | index name |
| string | array | $target_columns | target column or columns |
| boolean | $is_unique |
Definition at line 383 of file DBMysql.class.php.
| DBMysql::addQuotes | ( | $string | ) |
Handles quatation of the string variables from the query
| string | $string |
Definition at line 132 of file DBMysql.class.php.
| DBMysql::create | ( | ) |
Create an instance of this class
Definition at line 56 of file DBMysql.class.php.
| DBMysql::createTableByXml | ( | $xml_doc | ) |
Creates a table by using xml contents
| string | $xml_doc | xml schema contents |
Definition at line 447 of file DBMysql.class.php.
| DBMysql::createTableByXmlFile | ( | $file_name | ) |
Creates a table by using xml file path
| string | $file_name | xml schema file path |
Definition at line 457 of file DBMysql.class.php.
| DBMysql::db_fetch_object | ( | & | $result | ) |
Fetch a result row as an object
| resource | $result |
Definition at line 677 of file DBMysql.class.php.
| DBMysql::db_free_result | ( | & | $result | ) |
Free result memory
| resource | $result |
Definition at line 687 of file DBMysql.class.php.
| DBMysql::db_insert_id | ( | ) |
Get the ID generated in the last query Return next sequence from sequence table This method use only mysql
Definition at line 666 of file DBMysql.class.php.
| DBMysql::dropColumn | ( | $table_name, | |
| $column_name | |||
| ) |
Drop a column from the table
| string | $table_name | table name |
| string | $column_name | column name |
Definition at line 337 of file DBMysql.class.php.
| DBMysql::dropIndex | ( | $table_name, | |
| $index_name, | |||
$is_unique = false |
|||
| ) |
Drop an index from the table
| string | $table_name | table name |
| string | $index_name | index name |
| boolean | $is_unique |
Definition at line 401 of file DBMysql.class.php.
| DBMysql::getNextSequence | ( | ) |
Return the sequence value incremented by 1 Auto_increment column only used in the sequence table
Definition at line 243 of file DBMysql.class.php.
| & DBMysql::getParser | ( | $force = FALSE | ) |
Return the DBParser
| boolean | $force |
Definition at line 697 of file DBMysql.class.php.
| DBMysql::getSelectPageSql | ( | $query, | |
$with_values = true, |
|||
$start_count = 0, |
|||
$list_count = 0 |
|||
| ) |
If select query execute, return paging sql
| object | $query | |
| boolean | $with_values | |
| int | $start_count | |
| int | $list_count |
Definition at line 833 of file DBMysql.class.php.
| DBMysql::isColumnExists | ( | $table_name, | |
| $column_name | |||
| ) |
Check column exist status of the table
| string | $table_name | table name |
| string | $column_name | column name |
Definition at line 349 of file DBMysql.class.php.
| DBMysql::isIndexExists | ( | $table_name, | |
| $index_name | |||
| ) |
Check index status of the table
| string | $table_name | table name |
| string | $index_name | index name |
Definition at line 413 of file DBMysql.class.php.
| DBMysql::isTableExists | ( | $target_name | ) |
Check a table exists status
| string | $target_name |
Definition at line 280 of file DBMysql.class.php.
| DBMysql::isValidOldPassword | ( | $password, | |
| $saved_password | |||
| ) |
Function to obtain mysql old password(mysql only)
| string | $password | input password |
| string | $saved_password | saved password in DBMS |
Definition at line 263 of file DBMysql.class.php.
| DBMysql::queryError | ( | $queryObject | ) |
If have a error, return error object
| BaseObject | $queryObject |
Definition at line 708 of file DBMysql.class.php.
| DBMysql::queryPageLimit | ( | $queryObject, | |
| $result, | |||
| $connection, | |||
$with_values = true |
|||
| ) |
If select query execute, return page info
| BaseObject | $queryObject | |
| resource | $result | |
| resource | $connection | |
| boolean | $with_values |
Definition at line 735 of file DBMysql.class.php.
| DBMysql::$column_type |
Definition at line 31 of file DBMysql.class.php.
| DBMysql::$comment_syntax = '/* %s */' |
Definition at line 22 of file DBMysql.class.php.
| DBMysql::$prefix = 'xe_' |
Definition at line 21 of file DBMysql.class.php.
1.8.5