Файл: concrete5.7.5.6/concrete/src/Database/Schema/Parser/DoctrineXml05.php
Строк: 26
<?php
namespace ConcreteCoreDatabaseSchemaParser;
class DoctrineXml05 extends XmlParser
{
/**
* Transforms the XML from Adodb XML into
* Doctrine DBAL Schema.
*/
public function parse(ConcreteCoreDatabaseConnectionConnection $db)
{
$filter = null;
if ($this->ignoreExistingTables) {
$filter = function ($tableName) use ($db) {
return $db->tableExists($tableName) ? false : true;
};
}
return DoctrineXmlParser::fromDocument(
$this->rawXML->asXML(),
$db->getDatabasePlatform(),
true,
false,
$filter
);
}
}