Добавил namespace и зависимости
This commit is contained in:
parent
e9f7c23990
commit
32ec09a66a
92 changed files with 454 additions and 128 deletions
|
|
@ -7,6 +7,10 @@
|
|||
* $setup->executeActions('install');
|
||||
* </code>
|
||||
*/
|
||||
namespace ctiso;
|
||||
use ZipArchive,
|
||||
ctiso\Tools\SQLStatementExtractor;
|
||||
|
||||
class Setup
|
||||
{
|
||||
protected $actions = array();
|
||||
|
|
@ -198,7 +202,7 @@ class Setup
|
|||
*/
|
||||
function batchSQLZip(/*.Database.*/ $conn, $file)
|
||||
{
|
||||
$stmtList = Tools_SQLStatementExtractor::extract($this->zip->getFromName($file));
|
||||
$stmtList = SQLStatementExtractor::extract($this->zip->getFromName($file));
|
||||
foreach ($stmtList as $stmt) {
|
||||
$conn->executeQuery ($stmt);
|
||||
}
|
||||
|
|
@ -206,7 +210,7 @@ class Setup
|
|||
|
||||
static function batchSQL(/*.Database.*/ $conn, $file)
|
||||
{
|
||||
$stmtList = Tools_SQLStatementExtractor::extractFile($file);
|
||||
$stmtList = SQLStatementExtractor::extractFile($file);
|
||||
foreach ($stmtList as $stmt) {
|
||||
$conn->executeQuery ($stmt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue