API - XOOPS 2.5.11 Beta 2
By monxoops.fr
SqlUtility Class Reference

Static Public Member Functions

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

Member Function Documentation

◆ prefixQuery()

static 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
Here is the caller graph for this function:

◆ splitMySqlFile()

static 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
boolean always true @access public
Here is the caller graph for this function:

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