Skip to content

icms_db_mysql_Utility

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

icms_db_mysql_Utility

Redefinida por Claudia A. V. Callegari Participação de Rodrigo Lima

Redefined by Claudia A. V. Callegari Participation Rodrigo Lima

ImpressCMS.org

  • Class name: icms_db_mysql_Utility
  • Namespace:
  • This is an abstract class
  • This class implements: icms_db_IUtility

Methods

prefixQuery

mixed icms_db_IUtility::prefixQuery(string query, string prefix)

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

  • Visibility: public
  • This method is static.
  • This method is defined by icms_db_IUtility

Arguments

  • query string - <p>valid SQL query string</p>
  • prefix string - <p>prefix to add to all table names</p>

splitSqlFile

bool icms_db_IUtility::splitSqlFile(mixed ret, mixed sql)

Removes comment and splits large sql files into individual queries

  • Visibility: public
  • This method is static.
  • This method is defined by icms_db_IUtility

Arguments

  • ret mixed
  • sql mixed

checkSQL

bool icms_db_IUtility::checkSQL(string sql)

Determine if the SQL string is safe

  • Visibility: public
  • This method is static.
  • This method is defined by icms_db_IUtility

Arguments

  • sql string

__construct

mixed icms_db_IUtility::__construct()

Creates a new utility object

Clone this wiki locally