PHP Класс eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand

Наследование: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
Показать файл Открыть проект

Открытые методы

Метод Описание
insertData ( string $dbType ) Insert the database data.

Защищенные методы

Метод Описание
applyStatements ( array $statements ) Applies the given SQL $statements to the database in use.
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getDatabaseHandler ( ) : ConnectionHandler Returns the database handler from the service container.
getInitialData ( ) : array Returns the initial database data.
getPostInsertStatements ( string $dbType ) : string[] Returns statements to be executed after data insert.
getSchemaStatements ( string $dbType ) : string[] Returns the database schema as an array of SQL statements.

Описание методов

applyStatements() защищенный Метод

Applies the given SQL $statements to the database in use.
protected applyStatements ( array $statements )
$statements array

configure() защищенный Метод

protected configure ( )

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getDatabaseHandler() защищенный Метод

Returns the database handler from the service container.
protected getDatabaseHandler ( ) : ConnectionHandler
Результат eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler

getInitialData() защищенный Метод

Returns the initial database data.
protected getInitialData ( ) : array
Результат array

getPostInsertStatements() защищенный Метод

Returns statements to be executed after data insert.
protected getPostInsertStatements ( string $dbType ) : string[]
$dbType string Name of Database type (mysql, sqlite, pgsql, ..)
Результат string[]

getSchemaStatements() защищенный Метод

Returns the database schema as an array of SQL statements.
protected getSchemaStatements ( string $dbType ) : string[]
$dbType string Name of Database type (mysql, sqlite, pgsql, ..)
Результат string[]

insertData() публичный Метод

Insert the database data.
public insertData ( string $dbType )
$dbType string Name of Database type (mysql, sqlite, pgsql, ..)