2005-06-19 14:43:00 +02:00
|
|
|
<?php
|
2008-03-06 12:42:21 +01:00
|
|
|
/**
|
2012-06-29 11:05:22 +02:00
|
|
|
* EGroupware API: Database abstraction library
|
2008-03-06 12:42:21 +01:00
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package api
|
|
|
|
* @subpackage db
|
|
|
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
2016-02-20 19:16:21 +01:00
|
|
|
* @copyright (c) 2003-16 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
2008-03-06 12:42:21 +01:00
|
|
|
* @version $Id$
|
|
|
|
*/
|
|
|
|
|
2016-02-20 21:27:17 +01:00
|
|
|
use EGroupware\Api\Db;
|
2012-06-29 11:05:22 +02:00
|
|
|
|
2008-03-06 12:42:21 +01:00
|
|
|
/**
|
|
|
|
* You only need to clone the global database object $GLOBALS['egw']->db if:
|
|
|
|
* - you use the old methods f(), next_record(), row(), num_fields(), num_rows()
|
|
|
|
* - you access an application table (non phpgwapi) and you want to call set_app()
|
2008-06-07 10:24:18 +02:00
|
|
|
*
|
2008-03-06 12:42:21 +01:00
|
|
|
* Otherwise you can simply use $GLOBALS['egw']->db or a reference to it.
|
2008-06-07 10:24:18 +02:00
|
|
|
*
|
2008-03-06 12:42:21 +01:00
|
|
|
* Avoiding next_record() or row() can be done by looping with the recordset returned by query() or select():
|
2008-06-07 10:24:18 +02:00
|
|
|
*
|
2016-02-20 21:27:17 +01:00
|
|
|
* @deprecated use just EGroupware\Api\Db or EGroupware\Api\Db\Deprecated
|
2008-03-06 12:42:21 +01:00
|
|
|
*/
|
2016-02-20 21:27:17 +01:00
|
|
|
class egw_db extends Db\Deprecated {}
|
2013-11-08 20:54:08 +01:00
|
|
|
|
|
|
|
/**
|
2016-02-20 21:27:17 +01:00
|
|
|
* @deprecated use EGroupware\Api\Db\CallbackIterator
|
2013-11-08 20:54:08 +01:00
|
|
|
*/
|
2016-02-20 21:27:17 +01:00
|
|
|
class egw_db_callback_iterator extends Db\CallbackIterator {}
|