Добавил namespace и зависимости
This commit is contained in:
parent
e9f7c23990
commit
32ec09a66a
92 changed files with 454 additions and 128 deletions
|
|
@ -1,6 +1,10 @@
|
|||
<?php
|
||||
///<reference path="Database/PDOStatement.php" />
|
||||
|
||||
namespace ctiso;
|
||||
use PDO,
|
||||
ctiso\Database\Statement,
|
||||
ctiso\Database\IdGenerator;
|
||||
|
||||
/**
|
||||
* Класс оболочка для PDO для замены Creole
|
||||
|
|
@ -64,7 +68,7 @@ class Database extends PDO
|
|||
|
||||
public function prepareStatement($query)
|
||||
{
|
||||
return new Database_Statement($query, $this);
|
||||
return new Statement($query, $this);
|
||||
}
|
||||
|
||||
// Для совместимости со старым представлением баз данных CIS
|
||||
|
|
@ -161,7 +165,7 @@ class Database extends PDO
|
|||
}
|
||||
|
||||
function getIdGenerator() {
|
||||
return new Database_IdGenerator($this);
|
||||
return new IdGenerator($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue