1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: <?php
/**
 * Utility interface methods for database functions
 *
 * @copyright   The ImpressCMS Project - http://www.impresscms.org/
 * @license     GNU General Public License (GPL) - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * @since
 * @category    ICMS
 * @package     Database
 */
/**
 * Utility interface for all DB drivers
 *
 * @copyright   The ImpressCMS Project - http://www.impresscms.org/
 *
 * @category    ICMS
 * @package     Database
 * @since       2.0
 */
interface icms_db_IUtility {
    /**
     * Creates a new utility object
     */
    public function __construct();
    /**
     * Removes comment and splits large sql files into individual queries
     *
     *
     * @param   array    the split sql commands
     * @param   string   the sql commands
     * @return  boolean  always true
    */
    static public function splitSqlFile(&$ret, $sql);
    /**
     * add a prefix.'_' to all tablenames in a query
     *
     * @param   string  $query  valid SQL query string
     * @param   string  $prefix prefix to add to all table names
     * @return  mixed   FALSE on failure
    */
    static public function prefixQuery($query, $prefix);
    /**
     * Determine if the SQL string is safe
     *
     * @param string $sql
     * @return bool TRUE if the string is safe
    */
    static public function checkSQL($sql);
}