1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-26 15:34:22 +02:00

* added DibiTable

* new connection options: "result:objects" & "result:withtables"
* renamed DibiDriverInterface -> IDibiDriver, DibiVariableInterface -> IDibiVariable
This commit is contained in:
David Grudl
2008-01-15 03:43:03 +00:00
parent da0a239d6d
commit 5c045e58dc
21 changed files with 461 additions and 58 deletions

View File

@@ -35,7 +35,7 @@ final class DibiTranslator extends NObject
/** @var string NOT USED YET */
public $mask;
/** @var DibiDriverInterface */
/** @var IDibiDriver */
private $driver;
/** @var string last modifier */
@@ -55,7 +55,7 @@ final class DibiTranslator extends NObject
public function __construct(DibiDriverInterface $driver)
public function __construct(IDibiDriver $driver)
{
$this->driver = $driver;
}
@@ -207,7 +207,7 @@ final class DibiTranslator extends NObject
return 'NULL';
}
if ($value instanceof DibiVariableInterface) {
if ($value instanceof IDibiVariable) {
return $value->toSql($this->driver, $modifier);
}
@@ -311,7 +311,7 @@ final class DibiTranslator extends NObject
if ($value === NULL)
return 'NULL';
if ($value instanceof DibiVariableInterface)
if ($value instanceof IDibiVariable)
return $value->toSql($this->driver, NULL);
$this->hasError = TRUE;