XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
SqlUtility Class Reference

Public Member Functions

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

Detailed Description

Definition at line 29 of file sqlutility.php.

Member Function Documentation

SqlUtility::prefixQuery (   $query,
  $prefix 
)

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 152 of file sqlutility.php.

References $query.

Referenced by db_manager\queryFromFile(), XoopsMySQLDatabase\queryFromFile(), and xoops_module_install().

Here is the caller graph for this function:

SqlUtility::splitMySqlFile ( $ret,
  $sql 
)

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$ the splitted sql commands
string$ the sql commands
Returns
boolean always true public

Definition at line 42 of file sqlutility.php.

References $i, $j, $ret, and $sql.

Referenced by db_manager\queryFromFile(), XoopsMySQLDatabase\queryFromFile(), and xoops_module_install().

Here is the caller graph for this function:


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