XOOPS
2.6.0
|
Public Member Functions | |
__construct () | |
copyFields ($fieldsMap, $oTableName, $nTableName, $dropTable=false) | |
createDB () | |
dbExists () | |
deleteTables ($tables) | |
fetchArray ($ret) | |
insert ($table, $query) | |
isConnectable () | |
isError () | |
prefix ($table) | |
query ($sql) | |
queryFromFile ($sql_file_path, $force=false) | |
report () | |
tableExists ($table) | |
Public Attributes | |
$db | |
$failureStrings = array() | |
$successStrings = array() | |
Private Attributes | |
$f_tables = array() | |
$s_tables = array() | |
Definition at line 27 of file manager.php.
XoopsDatabaseManager::__construct | ( | ) |
Construct declaration
Definition at line 57 of file manager.php.
References $xoops, $xoopsDB, XoopsLocaleEn_US\EF_ENTRIES_NOT_INSERTED_TO_TABLE, XoopsLocaleEn_US\EF_TABLE_NOT_CREATED, XoopsLocaleEn_US\EF_TABLE_NOT_DROPPED, XoopsLocaleEn_US\EF_TABLE_NOT_UPDATED, XoopsBaseConfig\get(), Xoops\getInstance(), XoopsLocaleEn_US\SF_ENTRIES_INSERTED_TO_TABLE, XoopsLocaleEn_US\SF_TABLE_CREATED, XoopsLocaleEn_US\SF_TABLE_DROPPED, and XoopsLocaleEn_US\SF_TABLE_UPDATED.
XoopsDatabaseManager::copyFields | ( | $fieldsMap, | |
$oTableName, | |||
$nTableName, | |||
$dropTable = false |
|||
) |
This method allows to copy fields from one table to another
array | $fieldsMap | Map of the fields ex: array('oldfieldname' => 'newfieldname'); |
string | $oTableName | Old Table |
string | $nTableName | New Table |
bool | $dropTable | Drop old Table |
Definition at line 359 of file manager.php.
XoopsDatabaseManager::createDB | ( | ) |
creates a database table
Definition at line 103 of file manager.php.
References $result, and XoopsBaseConfig\get().
XoopsDatabaseManager::dbExists | ( | ) |
Checks if a database exists
Definition at line 93 of file manager.php.
XoopsDatabaseManager::deleteTables | ( | $tables | ) |
Deletes tables
No callers found in core. foreach loop is suspect, using key and value for a list of tables? No docs or examples about what it is supposed to do.
array | $tables | table to delete |
Definition at line 316 of file manager.php.
XoopsDatabaseManager::fetchArray | ( | $ret | ) |
fetches an array
string | $ret | resource that was returned from query |
Definition at line 260 of file manager.php.
XoopsDatabaseManager::insert | ( | $table, | |
$query | |||
) |
Inserts into a table
string | $table | table to insert into |
string | $query | query to use to insert |
Definition at line 274 of file manager.php.
References $query.
XoopsDatabaseManager::isConnectable | ( | ) |
Is the database connectable?
Definition at line 83 of file manager.php.
XoopsDatabaseManager::isError | ( | ) |
XoopsDatabaseManager::prefix | ( | $table | ) |
Setup prefix table
string | $table | table to prefix |
Definition at line 247 of file manager.php.
XoopsDatabaseManager::query | ( | $sql | ) |
runs a query
string | $sql | sql statement to perform |
Definition at line 234 of file manager.php.
References $sql.
XoopsDatabaseManager::queryFromFile | ( | $sql_file_path, | |
$force = false |
|||
) |
Loads a query from a file
string | $sql_file_path | name of file to read |
bool | $force | weither to force the query or not |
Definition at line 120 of file manager.php.
References XoopsLoad\fileExists(), SqlUtility\prefixQuery(), and SqlUtility\splitMySqlFile().
XoopsDatabaseManager::report | ( | ) |
XoopsDatabaseManager::tableExists | ( | $table | ) |
Checks to see if table exists
string | $table | name of database table looking for |
Definition at line 336 of file manager.php.
References $sql.
XoopsDatabaseManager::$db |
Definition at line 42 of file manager.php.
|
private |
Definition at line 37 of file manager.php.
XoopsDatabaseManager::$failureStrings = array() |
Definition at line 52 of file manager.php.
|
private |
Definition at line 32 of file manager.php.
XoopsDatabaseManager::$successStrings = array() |
Definition at line 47 of file manager.php.