XOOPS  2.6.0
SqlUtility Class Reference

Static Public Member Functions

static prefixQuery ($query, $prefix)
 
static splitMySqlFile (&$ret, $sql)
 

Detailed Description

Definition at line 28 of file sqlutility.php.

Member Function Documentation

static SqlUtility::prefixQuery (   $query,
  $prefix 
)
static

add a prefix.'_' to all tablenames in a query

Parameters
string$queryvalid SQL query string
string$prefixprefix to add to all table names
Returns
mixed FALSE on failure

Definition at line 126 of file sqlutility.php.

References $query.

Referenced by SystemModule\install(), XoopsDatabaseManager\queryFromFile(), Xoops\Core\Database\Connection\queryFromFile(), and XoopsMySQLDatabase\queryFromFile().

Here is the caller graph for this function:

static SqlUtility::splitMySqlFile ( $ret,
  $sql 
)
static

Function from phpMyAdmin (http://phpwizard.net/projects/phpMyAdmin/)

Removes comment and splits large sql files into individual queries

Last revision: September 23, 2001 - gandon

Parameters
array&$retthe splitted sql commands
string$sqlthe sql commands
Returns
bool always true public

Definition at line 43 of file sqlutility.php.

References $i, $j, and $sql.

Referenced by SystemModule\install(), XoopsDatabaseManager\queryFromFile(), Xoops\Core\Database\Connection\queryFromFile(), and XoopsMySQLDatabase\queryFromFile().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: