1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

Changed New BSD License to "dibi license"

This commit is contained in:
David Grudl
2007-10-30 00:58:15 +00:00
parent 330930fb34
commit 6856ace01e
16 changed files with 289 additions and 106 deletions

View File

@@ -1,19 +1,19 @@
<?php
/**
* dibi - Database Abstraction Layer according to dgx
* --------------------------------------------------
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* for PHP 5.0.3 and newer
*
* This source file is subject to the new BSD license that is bundled
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @version 0.9a (Revision: $WCREV$, Date: $WCDATE$)
* @category Database
* @package Dibi
@@ -21,13 +21,6 @@
*/
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
*
* @version $Revision$ $Date$
*/
if (version_compare(PHP_VERSION , '5.0.3', '<')) {
die('dibi needs PHP 5.0.3 or newer');
}
@@ -69,6 +62,7 @@ interface DibiVariableInterface
* This class is static container class for creating DB objects and
* store connections info.
*
* @version $Revision$ $Date$
*/
class dibi
{

View File

@@ -1,20 +1,29 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
/**
* The dibi driver for MySQL database
*
* @version $Revision$ $Date$
*/
class DibiMySqlDriver extends DibiDriver
{

View File

@@ -1,20 +1,29 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
/**
* The dibi driver for MySQLi database
*
* @version $Revision$ $Date$
*/
class DibiMySqliDriver extends DibiDriver
{

View File

@@ -1,20 +1,29 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
/**
* The dibi driver interacting with databases via ODBC connections
*
* @version $Revision$ $Date$
*/
class DibiOdbcDriver extends DibiDriver
{

View File

@@ -1,20 +1,29 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
/**
* The dibi driver for PostgreSql database
*
* @version $Revision$ $Date$
*/
class DibiPostgreDriver extends DibiDriver
{

View File

@@ -1,20 +1,29 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
/**
* The dibi driver for SQlite database
*
* @version $Revision$ $Date$
*/
class DibiSqliteDriver extends DibiDriver
{

View File

@@ -1,20 +1,29 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
/**
* The dibi driver for MS SQL database
*
* @version $Revision$ $Date$
*/
class DibiMsSqlDriver extends DibiDriver
{

View File

@@ -1,20 +1,29 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
/**
* The dibi driver for Oracle database
*
* @version $Revision$ $Date$
*/
class DibiOracleDriver extends DibiDriver
{

View File

@@ -1,20 +1,29 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
/**
* The dibi driver for PDO
*
* @version $Revision$ $Date$
*/
class DibiPdoDriver extends DibiDriver
{

View File

@@ -1,14 +1,22 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
@@ -16,6 +24,7 @@
/**
* dibi Common Driver
*
* @version $Revision$ $Date$
*/
abstract class DibiDriver
{

View File

@@ -1,20 +1,30 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
/**
* dibi common exception
*
* @version $Revision$ $Date$
*/
class DibiException extends Exception
{

View File

@@ -1,20 +1,30 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
/**
* dibi basic logger & profiler
*
* @version $Revision$ $Date$
*/
final class DibiLogger
{

View File

@@ -1,14 +1,22 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
@@ -34,6 +42,8 @@ if (!interface_exists('Countable', FALSE)) {
* $assoc = $result->fetchAssoc('active', 'id');
* unset($result);
* </code>
*
* @version $Revision$ $Date$
*/
abstract class DibiResult implements IteratorAggregate, Countable
{

View File

@@ -1,14 +1,22 @@
<?php
/**
* This file is part of the "dibi" project (http://php7.org/dibi/)
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @author David Grudl
* @copyright Copyright (c) 2005-2007 David Grudl aka -dgx- (http://www.dgx.cz)
* @license New BSD License
* @version $Revision$ $Date$
* @copyright Copyright (c) 2005, 2007 David Grudl
* @license http://php7.org/dibi/license (dibi license)
* @category Database
* @package Dibi
* @link http://php7.org/dibi/
*/
@@ -16,6 +24,7 @@
/**
* dibi translator
*
* @version $Revision$ $Date$
*/
final class DibiTranslator
{

View File

@@ -1,26 +1,61 @@
----------------------------------------------------------------------------------
Tento text je NEOFICI<43>LN<4C>M p<>ekladem NEW BSD LICENSE. Nevyjad<61>uje pr<70>vn<76> podstatu
Tento text je NEOFICI<43>LN<4C>M p<>ekladem "dibi license". Nevyjad<61>uje pr<70>vn<76> podstatu
podm<EFBFBD>nek pro <20><><EFBFBD>en<65> tohoto softwaru - k tomuto <20><>elu slou<6F><75> v<>hradn<64> p<>vodn<64>
anglick<EFBFBD> verze licence.
----------------------------------------------------------------------------------
Copyright (c) 2005-2007, David Grudl (http://www.dgx.cz)
The Dibi Licence, Version 1.0
=============================
Copyright (c) 2005, 2007 David Grudl (http://www.dgx.cz)
V<EFBFBD>echna pr<70>va vyhrazena.
Redistribuce a pou<6F>it<69> zdrojov<6F>ch i bin<EFBFBD>rn<EFBFBD>ch forem d<>la, v p<>vodn<64>m i upravovan<61>m
tvaru, jsou povoleny za n<>sleduj<75>c<EFBFBD>ch podm<64>nek:
Tato licence je pr<70>vn<76> ujedn<EFBFBD>n<EFBFBD> mezi v<>mi a Davidem Grudlem pro pot<6F>eby
pou<EFBFBD>it<EFBFBD> "dibi" (d<>le "Software"). By obtaining the Software you agree to comply
with the terms and conditions of this license.
* <20><><EFBFBD>en<65> zdrojov<6F> k<>d mus<75> obsahovat v<><76>e uvedenou informaci o copyrightu,
tento seznam podm<64>nek a n<><6E>e uveden<65> z<>eknut<75> se odpov<6F>dnosti.
* <20><><EFBFBD>en<65> bin<69>rn<72> tvar mus<75> n<>st v<><76>e uvedenou informaci o copyrightu,
tento seznam podm<64>nek a n<><6E>e uveden<65> z<>eknut<75> se odpov<6F>dnosti ve sv<73>
dokumentaci a/nebo dal<61><6C>ch poskytovan<61>ch materi<72>lech.
POVOLEN<EFBFBD> POU<4F>IT<49>
----------------
* Ani jm<6A>no Davida Grudla, ani jm<6A>na p<>isp<73>vatel<65> nemohou b<>t pou<6F>ita
p<>i podpo<70>e nebo pr<70>vn<76>ch aktech souvisej<65>c<EFBFBD>ch s produkty odvozen<65>mi
z tohoto software bez v<>slovn<76>ho p<>semn<6D>ho povolen<65>.
M<EFBFBD><EFBFBD>ete pou<6F><75>vat, kop<6F>rovat, modifikovat a distribuovat Software a jeho
dokumentaci, v p<>vodn<64>m i upravovan<61>m tvaru, k jak<61>mukoliv <20><>elu, a to
za n<>sleduj<75>c<EFBFBD>ch podm<64>nek:
1. Kopie tohoto licen<65>n<EFBFBD>ho ujedn<64>n<EFBFBD> mus<75> b<>t p<>ilo<6C>ena v distribuci.
2. <20><><EFBFBD>en<65> zdrojov<6F> k<>d mus<75> obsahovat v<><76>e uvedenou informaci o copyrightu
ve v<>ech souborech zdrojov<6F>ho k<>du.
3. <20><><EFBFBD>en<65> bin<69>rn<72> tvar mus<75> n<>st v<><76>e uvedenou informaci o copyrightu ve sv<73>
dokumentaci a/nebo dal<61><6C>ch materi<72>lech poskytovan<61>ch s distribuc<75>.
4. Produkty odvozen<65> od tohoto Software mus<75> ve sv<73> dokumentaci a/nebo
dal<61><6C>ch materi<72>lech poskytovan<61>ch s distribuc<75> obsahovat zm<7A>nku, <20>e jsou
odvozen<65> od "dibi".
5. N<>zev "dibi" nesm<73> b<>t pou<6F>it p<>i podpo<70>e nebo pr<70>vn<76>ch aktech
souvisej<65>c<EFBFBD>ch s produkty odvozen<65>mi z tohoto Software bez p<>edchoz<6F>ho
p<>semn<6D>ho souhlasu Davida Grudla.
6. Produkty odvozen<65> od tohoto Software nesm<73> b<>t nazv<7A>ny "dibi",
ani se nesm<73> "dibi" objevovat v jejich n<>zvu bez p<>edchoz<6F>ho
p<>semn<6D>ho souhlasu Davida Grudla.
INDEMNITY
---------
You agree to indemnify and hold harmless the authors of the Software and
any contributors for any direct, indirect, incidental, or consequential
third-party claims, actions or suits, as well as any related expenses,
liabilities, damages, settlements or fees arising from your use or misuse
of the Software, or a violation of any terms of this license.
Z<EFBFBD>RUKA SE NEPOSKYTUJE
---------------------
TENTO SOFTWARE JE POSKYTOV<4F>N DR<44>ITELEM LICENCE A JEHO P<>ISP<53>VATELI "JAK STOJ<4F> A LE<4C><45>"
A JAK<41>KOLIV V<>SLOVN<56> NEBO P<>EDPOKL<4B>DAN<41> Z<>RUKY V<>ETN<54>, ALE NEJEN, P<>EDPOKL<4B>DAN<41>CH

View File

@@ -1,27 +1,61 @@
Copyright (c) 2005-2007, David Grudl (http://www.dgx.cz)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of David Grudl nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The Dibi Licence, Version 1.0
=============================
Copyright (c) 2005, 2007 David Grudl (http://www.dgx.cz)
All rights reserved.
This license is a legal agreement between you and David Grudl for the use
of "dibi" (the "Software"). By obtaining the Software you agree to comply
with the terms and conditions of this license.
PERMITTED USE
-------------
You are permitted to use, copy, modify, and distribute the Software and its
documentation, with or without modification, for any purpose, provided that
the following conditions are met:
1. A copy of this license agreement must be included with the distribution.
2. Redistributions of source code must retain the above copyright notice in
all source code files.
3. Redistributions in binary form must reproduce the above copyright notice
in the documentation and/or other materials provided with the distribution.
4. Products derived from the Software must include an acknowledgment that
they are derived from "dibi" in their documentation and/or other
materials provided with the distribution.
5. The name "dibi" must not be used to endorse or promote products derived
from the Software without prior written permission from David Grudl.
6. Products derived from the Software may not be called "dibi",
nor may "dibi" appear in their name, without prior written
permission from David Grudl.
INDEMNITY
---------
You agree to indemnify and hold harmless the authors of the Software and
any contributors for any direct, indirect, incidental, or consequential
third-party claims, actions or suits, as well as any related expenses,
liabilities, damages, settlements or fees arising from your use or misuse
of the Software, or a violation of any terms of this license.
DISCLAIMER OF WARRANTY
----------------------
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.