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

phpDoc simplified & typos

This commit is contained in:
David Grudl
2013-12-30 23:19:42 +01:00
parent 2c3fe68c6c
commit fa5b7678f4
37 changed files with 17 additions and 152 deletions

View File

@@ -3,13 +3,16 @@
"description": "Dibi is Database Abstraction Library for PHP 5.", "description": "Dibi is Database Abstraction Library for PHP 5.",
"keywords": ["database", "dbal", "mysql", "postgresql", "sqlite", "mssql", "oracle", "access", "pdo", "odbc"], "keywords": ["database", "dbal", "mysql", "postgresql", "sqlite", "mssql", "oracle", "access", "pdo", "odbc"],
"homepage": "http://dibiphp.com/", "homepage": "http://dibiphp.com/",
"license": ["BSD-3", "GPLv2", "GPLv3"], "license": ["BSD-3-Clause", "GPL-2.0", "GPL-3.0"],
"authors": [ "authors": [
{ {
"name": "David Grudl", "name": "David Grudl",
"homepage": "http://davidgrudl.com" "homepage": "http://davidgrudl.com"
} }
], ],
"require": {
"php": ">=5.2.0"
},
"require-dev": { "require-dev": {
"nette/tester": "@dev" "nette/tester": "@dev"
}, },

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -4,9 +4,6 @@
* dibi - smart database abstraction layer (http://dibiphp.com) * dibi - smart database abstraction layer (http://dibiphp.com)
* *
* Copyright (c) 2005, 2012 David Grudl (http://davidgrudl.com) * Copyright (c) 2005, 2012 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */
@@ -267,7 +264,7 @@ class dibi
/** /**
* Executes SQL query and fetch results - Monostate for DibiConnection::query() & fetchAll(). * Executes SQL query and fetch results - Monostate for DibiConnection::query() & fetchAll().
* @param array|mixed one or more arguments * @param array|mixed one or more arguments
* @return array of DibiRow * @return DibiRow[]
* @throws DibiException * @throws DibiException
*/ */
public static function fetchAll($args) public static function fetchAll($args)

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */
require_once dirname(__FILE__) . '/DibiMsSqlReflector.php'; require_once dirname(__FILE__) . '/DibiMsSqlReflector.php';

View File

@@ -5,9 +5,6 @@
* *
* Copyright (c) 2005, 2010 David Grudl (http://davidgrudl.com) * Copyright (c) 2005, 2010 David Grudl (http://davidgrudl.com)
* *
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*
* @package dibi\drivers * @package dibi\drivers
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */
@@ -320,7 +316,7 @@ class DibiPostgreDriver extends DibiObject implements IDibiDriver, IDibiResultDr
$value = pg_escape_string($this->connection, $value); $value = pg_escape_string($this->connection, $value);
} else { } else {
$value = pg_escape_string($value); $value = pg_escape_string($value);
} }
$value = strtr($value, array( '%' => '\\\\%', '_' => '\\\\_')); $value = strtr($value, array( '%' => '\\\\%', '_' => '\\\\_'));
return ($pos <= 0 ? "'%" : "'") . $value . ($pos >= 0 ? "%'" : "'"); return ($pos <= 0 ? "'%" : "'") . $value . ($pos >= 0 ? "%'" : "'");

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */
@@ -590,7 +586,7 @@ class DibiConnection extends DibiObject
/** /**
* Executes SQL query and fetch results - shortcut for query() & fetchAll(). * Executes SQL query and fetch results - shortcut for query() & fetchAll().
* @param array|mixed one or more arguments * @param array|mixed one or more arguments
* @return array of DibiRow * @return DibiRow[]
* @throws DibiException * @throws DibiException
*/ */
public function fetchAll($args) public function fetchAll($args)

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */
@@ -49,7 +45,7 @@ class DibiDatabaseInfo extends DibiObject
/** /**
* @return array of DibiTableInfo * @return DibiTableInfo[]
*/ */
public function getTables() public function getTables()
{ {
@@ -59,7 +55,7 @@ class DibiDatabaseInfo extends DibiObject
/** /**
* @return array of string * @return string[]
*/ */
public function getTableNames() public function getTableNames()
{ {
@@ -181,7 +177,7 @@ class DibiTableInfo extends DibiObject
/** /**
* @return array of DibiColumnInfo * @return DibiColumnInfo[]
*/ */
public function getColumns() public function getColumns()
{ {
@@ -191,7 +187,7 @@ class DibiTableInfo extends DibiObject
/** /**
* @return array of string * @return string[]
*/ */
public function getColumnNames() public function getColumnNames()
{ {
@@ -233,7 +229,7 @@ class DibiTableInfo extends DibiObject
/** /**
* @return array of DibiForeignKeyInfo * @return DibiForeignKeyInfo[]
*/ */
public function getForeignKeys() public function getForeignKeys()
{ {
@@ -243,7 +239,7 @@ class DibiTableInfo extends DibiObject
/** /**
* @return array of DibiIndexInfo * @return DibiIndexInfo[]
*/ */
public function getIndexes() public function getIndexes()
{ {
@@ -336,7 +332,7 @@ class DibiResultInfo extends DibiObject
/** /**
* @return array of DibiColumnInfo * @return DibiColumnInfo[]
*/ */
public function getColumns() public function getColumns()
{ {
@@ -347,7 +343,7 @@ class DibiResultInfo extends DibiObject
/** /**
* @param bool * @param bool
* @return array of string * @return string[]
*/ */
public function getColumnNames($fullNames = FALSE) public function getColumnNames($fullNames = FALSE)
{ {

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */
@@ -245,7 +241,7 @@ class DibiResult extends DibiObject implements IDataSource
* Fetches all records from table. * Fetches all records from table.
* @param int offset * @param int offset
* @param int limit * @param int limit
* @return array of DibiRow * @return DibiRow[]
*/ */
final public function fetchAll($offset = NULL, $limit = NULL) final public function fetchAll($offset = NULL, $limit = NULL)
{ {

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -2,11 +2,7 @@
/** /**
* This file is part of the "dibi" - smart database abstraction layer. * This file is part of the "dibi" - smart database abstraction layer.
*
* Copyright (c) 2005 David Grudl (http://davidgrudl.com) * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/ */

View File

@@ -16,7 +16,7 @@ remains intact.
New BSD License New BSD License
--------------- ---------------
Copyright (c) 2004, 2013 David Grudl (http://davidgrudl.com) Copyright (c) 2004, 2014 David Grudl (http://davidgrudl.com)
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, Redistribution and use in source and binary forms, with or without modification,