eZPublishCommunityProject  2013.9
eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand Class Reference
+ Inheritance diagram for eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand:
+ Collaboration diagram for eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand:

Public Member Functions

 insertData ($dbType)
 Insert the database data. More...
 

Protected Member Functions

 applyStatements (array $statements)
 Applies the given SQL $statements to the database in use. More...
 
 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 
 getDatabaseHandler ()
 Returns the database handler from the service container. More...
 
 getInitialData ()
 Returns the initial database data. More...
 
 getPostInsertStatements ($dbType)
 Returns statements to be executed after data insert. More...
 
 getSchemaStatements ($dbType)
 Returns the database schema as an array of SQL statements. More...
 

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand::applyStatements ( array  $statements)
protected

Applies the given SQL $statements to the database in use.

Parameters
array$statements
Returns
void

Referenced by eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand\execute(), and eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand\insertData().

eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand::configure ( )
protected
eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand::execute ( InputInterface  $input,
OutputInterface  $output 
)
protected
eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand::getDatabaseHandler ( )
protected
eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand::getInitialData ( )
protected

Returns the initial database data.

Returns
array

Referenced by eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand\insertData().

eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand::getPostInsertStatements (   $dbType)
protected

Returns statements to be executed after data insert.

Parameters
string$dbTypeName of Database type (mysql, sqlite, pgsql, ..)
Returns
string[]

Referenced by eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand\insertData().

eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand::getSchemaStatements (   $dbType)
protected

Returns the database schema as an array of SQL statements.

Parameters
string$dbTypeName of Database type (mysql, sqlite, pgsql, ..)
Returns
string[]

Referenced by eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand\execute().

eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand::insertData (   $dbType)

Insert the database data.

Parameters
string$dbTypeName of Database type (mysql, sqlite, pgsql, ..)
Returns
void

Referenced by eZ\Bundle\EzPublishCoreBundle\Command\TestInitDbCommand\execute().


The documentation for this class was generated from the following file: