Property | Type | Description | |
---|---|---|---|
$errorQueries |
Property | Type | Description | |
---|---|---|---|
$logger |
Method | Description | |
---|---|---|
__construct ( object $logger ) | ||
createNewscoopDatabase ( Doctrine\DBAL\Connection $connection ) | Create Newscoop Database | |
fillNewscoopDatabase ( Doctrine\DBAL\Connection $connection ) : boolean | Fill database with default data and run all not applied upgrades | |
importDB ( string $sqlFilePath, Doctrine\DBAL\Connection $connection, mixed $logger = null ) : integer | Import sql file to databas | |
installDatabaseSchema ( Doctrine\DBAL\Connection $connection, string $host = null, $publicationName = null ) | Install database schema | |
installSampleData ( Doctrine\DBAL\Connection $connection ) | Fill database with sample data | |
loadGeoData ( Doctrine\DBAL\Connection $connection ) : boolean | Fill datatabase with geodata | |
renderFile ( string $template, string $target, array $parameters ) : boolean | Save TWIG template to file | |
saveDatabaseConfiguration ( Doctrine\DBAL\Connection $connection ) | Save database configuration to file | |
saveDatabaseVersion ( Doctrine\DBAL\Connection $connection, string $version, string $roll ) : boolean | Sava new database version in Versions table | |
searchDbRolls ( string $roll_base_dir, string $last_db_roll ) : array | Search for db roll in rols directory | |
versionCompare ( string $p_version1, string $p_version2 ) : integer | Compares versions of Newscoop for upgrades 3.1.0 before 3.1.x, 3.5.2 before 3.5.11 |
Method | Description | |
---|---|---|
renderTwigTemplate ( string $template, array $parameters ) : string | render Twig template |
Method | Description | |
---|---|---|
combinePaths ( string $dirFirst, string $dirSecond ) : string | Puts together two paths, usually an absolute one (directory), plus a relative one (filename) | |
splitSQL ( string $sqlFile ) : array | Split big sql to array fo queries | |
withMysqlAllIsOk ( $mysqlClientCommand ) : boolean | Check if current mysql instance is ok for Newscoop |
public createNewscoopDatabase ( Doctrine\DBAL\Connection $connection ) | ||
$connection | Doctrine\DBAL\Connection |
public fillNewscoopDatabase ( Doctrine\DBAL\Connection $connection ) : boolean | ||
$connection | Doctrine\DBAL\Connection | |
return | boolean |
public installDatabaseSchema ( Doctrine\DBAL\Connection $connection, string $host = null, $publicationName = null ) | ||
$connection | Doctrine\DBAL\Connection | |
$host | string |
public installSampleData ( Doctrine\DBAL\Connection $connection ) | ||
$connection | Doctrine\DBAL\Connection |
public loadGeoData ( Doctrine\DBAL\Connection $connection ) : boolean | ||
$connection | Doctrine\DBAL\Connection | |
return | boolean |
public saveDatabaseConfiguration ( Doctrine\DBAL\Connection $connection ) | ||
$connection | Doctrine\DBAL\Connection |