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

Driver's reflection capabilities moved to IDibiReflector

This commit is contained in:
David Grudl
2010-05-26 16:26:21 +02:00
parent 7bac2ef3b3
commit 8c99f0c04d
15 changed files with 38 additions and 180 deletions

View File

@@ -24,7 +24,7 @@
*/
class DibiDatabaseInfo extends DibiObject
{
/** @var IDibiDriver */
/** @var IDibiReflector */
private $driver;
/** @var string */
@@ -35,7 +35,7 @@ class DibiDatabaseInfo extends DibiObject
public function __construct(IDibiDriver $driver, $name)
public function __construct(IDibiReflector $driver, $name)
{
$this->driver = $driver;
$this->name = $name;
@@ -145,7 +145,7 @@ class DibiDatabaseInfo extends DibiObject
*/
class DibiTableInfo extends DibiObject
{
/** @var IDibiDriver */
/** @var IDibiReflector */
private $driver;
/** @var string */
@@ -168,7 +168,7 @@ class DibiTableInfo extends DibiObject
public function __construct(IDibiDriver $driver, array $info)
public function __construct(IDibiReflector $driver, array $info)
{
$this->driver = $driver;
$this->name = $info['name'];
@@ -349,7 +349,7 @@ class DibiTableInfo extends DibiObject
*/
class DibiResultInfo extends DibiObject
{
/** @var IDibiDriver */
/** @var IDibiReflector */
private $driver;
/** @var array */
@@ -360,7 +360,7 @@ class DibiResultInfo extends DibiObject
public function __construct(IDibiDriver $driver)
public function __construct(IDibiReflector $driver)
{
$this->driver = $driver;
}
@@ -466,7 +466,7 @@ class DibiColumnInfo extends DibiObject
/** @var array */
private static $types;
/** @var IDibiDriver */
/** @var IDibiReflector */
private $driver;
/** @var array (name, nativetype, [table], [fullname], [size], [nullable], [default], [autoincrement], [vendor]) */
@@ -477,7 +477,7 @@ class DibiColumnInfo extends DibiObject
public function __construct(IDibiDriver $driver, array $info)
public function __construct(IDibiReflector $driver, array $info)
{
$this->driver = $driver;
$this->info = $info;