PHP 클래스 eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand

상속: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

공개 메소드들

메소드 설명
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, ..)