Добавил namespace и зависимости

This commit is contained in:
CORP\phedor 2018-03-27 17:40:33 +03:00
parent e9f7c23990
commit 32ec09a66a
92 changed files with 454 additions and 128 deletions

View file

@ -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);
}