1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-12 09:04:24 +02:00

* added support for unbuffered queries (MySQL, MySQLi, SQLite)

* doc-comments changed to be compatible with phpDocumentor
* DibiDriver::config() renamed to alias()
This commit is contained in:
David Grudl
2007-11-12 00:08:29 +00:00
parent fd1d2b86ff
commit 5ee6a19f93
17 changed files with 341 additions and 170 deletions

View File

@@ -11,12 +11,10 @@
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @license http://php7.org/dibi/license dibi license
* @link http://php7.org/dibi/
* @package dibi
*/
@@ -24,7 +22,10 @@
/**
* dibi Common Driver
*
* @version $Revision$ $Date$
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @package dibi
* @version $Revision$ $Date$
*/
abstract class DibiDriver extends NObject
{
@@ -213,7 +214,7 @@ abstract class DibiDriver extends NObject
* @param string alias key
* @return void
*/
protected static function config(&$config, $key, $alias=NULL)
protected static function alias(&$config, $key, $alias=NULL)
{
if (isset($config[$key])) return;
@@ -333,9 +334,9 @@ abstract class DibiDriver extends NObject
/**
* Gets a information of the current database.
*
* @return DibiMetaData
* @return DibiReflection
*/
abstract public function getMetaData();
abstract public function getDibiReflection();

View File

@@ -11,12 +11,10 @@
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @license http://php7.org/dibi/license dibi license
* @link http://php7.org/dibi/
* @package dibi
*/
@@ -24,7 +22,10 @@
/**
* dibi common exception
*
* @version $Revision$ $Date$
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @package dibi
* @version $Revision$ $Date$
*/
class DibiException extends Exception
{
@@ -33,6 +34,11 @@ class DibiException extends Exception
/**
* database server exception
*
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @package dibi
* @version $Revision$ $Date$
*/
class DibiDatabaseException extends DibiException
{

View File

@@ -11,12 +11,10 @@
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @license http://php7.org/dibi/license dibi license
* @link http://php7.org/dibi/
* @package dibi
*/
@@ -24,7 +22,10 @@
/**
* dibi basic logger & profiler (experimental)
*
* @version $Revision$ $Date$
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @package dibi
* @version $Revision$ $Date$
*/
final class DibiLogger extends NObject
{

View File

@@ -11,12 +11,10 @@
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @license http://php7.org/dibi/license dibi license
* @link http://php7.org/dibi/
* @package dibi
*/
@@ -37,7 +35,10 @@
* unset($result);
* </code>
*
* @version $Revision$ $Date$
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @package dibi
* @version $Revision$ $Date$
*/
abstract class DibiResult extends NObject implements IteratorAggregate, Countable
{

View File

@@ -11,12 +11,10 @@
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @license http://php7.org/dibi/license dibi license
* @link http://php7.org/dibi/
* @package dibi
*/
@@ -39,6 +37,11 @@
* print_r($row);
* }
* </code>
*
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @package dibi
* @version $Revision$ $Date$
*/
final class DibiResultIterator implements Iterator
{

View File

@@ -11,12 +11,10 @@
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @license http://php7.org/dibi/license dibi license
* @link http://php7.org/dibi/
* @package dibi
*/
@@ -24,7 +22,10 @@
/**
* dibi SQL translator
*
* @version $Revision$ $Date$
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @package dibi
* @version $Revision$ $Date$
*/
final class DibiTranslator extends NObject
{

View File

@@ -11,12 +11,10 @@
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
* @copyright Copyright (c) 2004, 2007 David Grudl
* @license http://php7.org/nette/license Nette license
* @link http://php7.org/nette/
* @package Nette
*/
@@ -55,8 +53,9 @@ if (!class_exists('NObject', FALSE)) {
*
* @author David Grudl
* @copyright Copyright (c) 2004, 2007 David Grudl
* @license http://php7.org/nette/license (Nette license)
* @license http://php7.org/nette/license Nette license
* @link http://php7.org/nette/
* @package Nette
*/
abstract class NObject
{
@@ -226,6 +225,12 @@ abstract class NObject
/**
* NClass is the ultimate ancestor of all uninstantiable classes.
*
* @author David Grudl
* @copyright Copyright (c) 2004, 2007 David Grudl
* @license http://php7.org/nette/license Nette license
* @link http://php7.org/nette/
* @package Nette
*/
abstract class NClass
{