Overview

Packages

  • Auth
    • Ads
    • Ldap
    • Xoops
  • Autotasks
  • Config
    • Category
    • Item
    • Option
  • Core
    • Filesystem
    • Filters
    • Logger
    • Mail
    • Message
    • Password
    • Security
    • StopSpammer
    • Template
    • Textsanitizer
    • VersionChecker
  • Data
    • Avatar
    • Comment
  • Database
    • Connection
    • Criteria
    • Legacy
    • MySQL
    • PDO
    • Updater
  • Feeds
    • RSS
  • File
  • Form
    • Base
    • Elements
  • ICMS
    • IPF
      • View
  • Image
    • Category
  • Ipf
    • Category
    • Controller
    • Export
    • form
    • Keyhighlighter
    • Member
    • Object
    • Permission
    • richfile
    • Tree
    • urllink
    • View
  • kernel
    • Set
  • Member
    • Group
    • GroupMembership
    • GroupPermission
    • User
  • Messaging
  • Module
  • None
  • Notification
  • Page
  • Plugins
    • Editor
  • Preload
    • Libraries
  • Privmessage
  • Session
  • SmartObject
  • View
    • Block
    • Breadcrumb
    • PageNav
    • PrinterFriendly
    • Template
    • Templates
    • Theme
    • Tree

Classes

  • icms_db_legacy_Database
  • icms_db_legacy_mysql_Database
  • icms_db_legacy_mysql_Proxy
  • icms_db_legacy_mysql_Safe
  • icms_db_legacy_mysql_Utility
  • Overview
  • Package
  • Class

Class icms_db_legacy_mysql_Utility

Provide some utility methods for databases

icms_db_legacy_mysql_Utility implements icms_db_IUtility
Package: Database\Legacy
Category: ICMS
Copyright: copyright (c) 2000-2007 XOOPS.org
License: GNU General Public License (GPL)
Author: Kazumi Ono onokazu@xoops.org
Located at db/legacy/mysql/Utility.php
Methods summary
public
# __construct( )

Creates a new utility object

Creates a new utility object

Implementation of

icms_db_IUtility::__construct()
public static boolean
# splitMySqlFile( array & $ret, string $sql )

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

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

$ret
split sql commands
$sql
sql commands

Returns

boolean
always true
public static boolean
# splitSqlFile( array & $ret, string $sql )

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

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

$ret
split sql commands
$sql
sql commands

Returns

boolean
always true

Implementation of

icms_db_IUtility::splitSqlFile()
public static mixed
# prefixQuery( string $query, string $prefix )

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

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

Parameters

$query
valid SQL query string
$prefix
prefix to add to all table names

Returns

mixed
FALSE on failure

Implementation of

icms_db_IUtility::prefixQuery()
public static boolean
# checkSQL( string $sql )

Determine if the SQL string is safe

Determine if the SQL string is safe

Parameters

$sql

Returns

boolean

See

ProtectorMySQLDatabase::checkSql()

Implementation of

icms_db_IUtility::checkSQL()
API documentation generated by ApiGen