Location: PHPKode > scripts > RC4PHP class > rc4php-class/rc4php_db_sql_interface.php
<?PHP
/**
*
* RC4PHP :  Raul's Classes For PHP <http://rc4php.sourceforge.net/>
* Copyright (c) 2006, Raul IONESCU
*                     Bucharest, ROMANIA
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @package      RC4PHP
* @copyright 	Copyright (c) 2006, Raul IONESCU.
* @author 	Raul IONESCU <hide@address.com>
* @license      http://www.opensource.org/licenses/mit-license.php The MIT License
* @version 	0.6.3 (development)
* @category 	SQL interface
* @access 	public
*
* PHP versions 5.1 or greater
*/
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
interface RC4PHP_DB_SQL_Interface
{
public function quoteName($name);
public function escapeString($string);
public function &escapeBinaryString(&$binaryString);
public function &unescapeSQLBinaryString(&$binaryString);
public function isConnected();
public function connect();
public function disconnect();
public function query($sql);
public function getDatabases();
public function getTables($database='');
public function getViews($database='');
public function DATE2MIDAS($date='');
public function MIDAS2DATE($MIDASdate);
}
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
interface RC4PHP_DB_SQL_Result_Interface
{
public function execute();
public function fetchField($fieldOffset=NULL);
public function fetchRow();
public function fetchRowAssociative();
public function fetchRowArray();
public function fetchObject();
public function fetchAllRows();
public function fetchAllRowsAssociative();
public function fetchAllRowsArray();
public function fetchAllObjectsArray();
public function nextResult();
public function freeResult();
public function printPageSelect($selectName='page',$otherSelectParameters='');
}
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
?>
Return current item: RC4PHP class