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.
|
|
|
|
*
|
|
|
|
* Long description for file
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
|
|
|
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
|
|
|
* Copyright (c) 2005, CakePHP Authors/Developers
|
|
|
|
*
|
|
|
|
* Author(s): Michal Tatarynowicz aka Pies <tatarynowicz@gmail.com>
|
|
|
|
* Larry E. Masters aka PhpNut <nut@phpnut.com>
|
|
|
|
* Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
|
|
|
* @filesource
|
|
|
|
* @author CakePHP Authors/Developers
|
|
|
|
* @copyright Copyright (c) 2005, CakePHP Authors/Developers
|
|
|
|
* @link https://trac.cakephp.org/wiki/Authors Authors/Developers
|
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.libs.dbo
|
|
|
|
* @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.
|
2005-08-21 06:49:02 +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
|
|
|
|
* @subpackage cake.libs.dbo
|
|
|
|
* @since CakePHP v 0.2.9
|
|
|
|
*/
|
2005-06-12 20:50:12 +00:00
|
|
|
class DBO_generic extends DBO
|
|
|
|
{
|
|
|
|
|
2005-07-10 05:08:19 +00:00
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
function connect ($config)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
function disconnect ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
function execute ($sql)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
2005-08-25 16:40:50 +00:00
|
|
|
*
|
2005-07-10 05:08:19 +00:00
|
|
|
*/
|
|
|
|
function fetchRow ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
|
|
|
*
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
function tablesList ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
2005-09-18 13:25:20 +00:00
|
|
|
function fields ($tableName)
|
2005-07-10 05:08:19 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
function prepareValue ($data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
function lastError ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
function lastAffected ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
function lastNumRows ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
function lastInsertId ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2005-08-25 16:40:50 +00:00
|
|
|
* Abstract method defined in subclasses.
|
2005-07-10 05:08:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
function selectLimit ($limit, $offset=null)
|
|
|
|
{
|
|
|
|
}
|
2005-06-12 20:50:12 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|