2005-07-04 01:07:14 +00:00
|
|
|
<?php
|
2005-08-21 06:49:02 +00:00
|
|
|
/* SVN FILE: $Id$ */
|
2005-06-12 20:50:12 +00:00
|
|
|
|
|
|
|
/**
|
2005-08-21 06:49:02 +00:00
|
|
|
* Generic layer for DBO.
|
2006-01-12 02:10:47 +00:00
|
|
|
*
|
2005-08-21 06:49:02 +00:00
|
|
|
* Long description for file
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
|
|
|
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
2006-01-20 07:46:14 +00:00
|
|
|
* Copyright (c) 2006, Cake Software Foundation, Inc.
|
2005-12-23 21:57:26 +00:00
|
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
* Las Vegas, Nevada 89104
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2006-01-12 02:10:47 +00:00
|
|
|
* @filesource
|
2006-01-20 07:46:14 +00:00
|
|
|
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
2005-12-23 21:57:26 +00:00
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
2005-08-21 06:49:02 +00:00
|
|
|
* @package cake
|
2006-01-12 02:10:47 +00:00
|
|
|
* @subpackage cake.cake.libs.model.datasources.dbo
|
2005-08-21 06:49:02 +00:00
|
|
|
* @since CakePHP v 0.2.9
|
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
|
|
|
*/
|
2005-07-04 04:16:20 +00:00
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract DBO class file.
|
2006-01-12 02:10:47 +00:00
|
|
|
*
|
2005-08-25 16:40:50 +00:00
|
|
|
* All implementations override this class.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
|
|
|
* @package cake
|
2006-01-12 02:10:47 +00:00
|
|
|
* @subpackage cake.cake.libs.model.datasources.dbo
|
2005-08-21 06:49:02 +00:00
|
|
|
* @since CakePHP v 0.2.9
|
|
|
|
*/
|
2006-01-12 02:10:47 +00:00
|
|
|
class DBO_generic extends DBO
|
2005-06-12 20:50:12 +00:00
|
|
|
{
|
|
|
|
|
2005-07-10 05:08:19 +00:00
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function connect ($config)
|
|
|
|
{
|
|
|
|
}
|
2005-07-10 05:08:19 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function disconnect ()
|
|
|
|
{
|
|
|
|
}
|
2005-07-10 05:08:19 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function execute ($sql)
|
|
|
|
{
|
|
|
|
}
|
2005-07-10 05:08:19 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
2006-02-18 23:42:21 +00:00
|
|
|
*
|
2005-07-10 05:08:19 +00:00
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function fetchRow ()
|
|
|
|
{
|
|
|
|
}
|
2005-07-10 05:08:19 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-08-25 16:40:50 +00:00
|
|
|
*
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function tablesList ()
|
|
|
|
{
|
|
|
|
}
|
2005-07-10 05:08:19 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function fields ($tableName)
|
|
|
|
{
|
|
|
|
}
|
2005-07-10 05:08:19 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function prepareValue ($data)
|
|
|
|
{
|
|
|
|
}
|
2005-07-10 05:08:19 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function lastError ()
|
|
|
|
{
|
|
|
|
}
|
2005-07-10 05:08:19 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function lastAffected ()
|
|
|
|
{
|
|
|
|
}
|
2005-07-10 05:08:19 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function lastNumRows ()
|
|
|
|
{
|
|
|
|
}
|
2005-07-10 05:08:19 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function lastInsertId ()
|
|
|
|
{
|
|
|
|
}
|
2006-01-12 02:10:47 +00:00
|
|
|
|
2005-07-10 05:08:19 +00:00
|
|
|
/**
|
2006-01-12 02:10:47 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-02-18 23:42:21 +00:00
|
|
|
function selectLimit ($limit, $offset=null)
|
|
|
|
{
|
|
|
|
}
|
2005-06-12 20:50:12 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|