-
Notifications
You must be signed in to change notification settings - Fork 35
icms_db_IUtility
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!
Utility interface for all DB drivers
- Interface name: icms_db_IUtility
- Namespace:
- This is an interface
mixed icms_db_IUtility::__construct()
Creates a new utility object
- Visibility: public
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.
- ret mixed
- sql mixed
mixed icms_db_IUtility::prefixQuery(string query, string prefix)
add a prefix.'_' to all tablenames in a query
- Visibility: public
- This method is static.
- query string - <p>valid SQL query string</p>
- prefix string - <p>prefix to add to all table names</p>
bool icms_db_IUtility::checkSQL(string sql)
Determine if the SQL string is safe
- Visibility: public
- This method is static.
- sql string