getContentRec(null, array(".svn")); foreach ($files as $file) { if (Path::getExtension($file) == $tplFile) { // Шаблон $dst = $out->append($path->relPath (Path::skipExtension($file))); Path::prepare($dst); file_put_contents($dst, self::fileContent($file, $tpl)); } else { // Обычный файл $dst = $out->append($path->relPath ($file)); Path::prepare($dst); copy($file, $dst); } } } /** * Выполнение Списка SQL команд */ static function batchSQL(Connection $conn, $file) { $stmtList = SQLStatementExtractor::extractFile ($file); foreach ($stmtList as $stmt) { $conn->executeQuery ($stmt); } } } ?>