PHP Class Contao\Database\Installer

Inheritance: extends Controller
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method Description
__construct ( ) Make the constructor public
generateSqlForm ( ) : string Generate a HTML form with queries and return it as string
getFromDb ( ) : array Get the current database structure
getFromDca ( ) : array Get the DCA table settings from the DCA cache
getFromFile ( ) : array Get the DCA table settings from the database.sql files

Protected Methods

Method Description
compileCommands ( ) : array Compile a command array for each database modification

Method Details

__construct() public method

Make the constructor public
public __construct ( )

compileCommands() protected method

Compile a command array for each database modification
protected compileCommands ( ) : array
return array An array of commands

generateSqlForm() public method

Generate a HTML form with queries and return it as string
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0.
public generateSqlForm ( ) : string
return string The form HTML markup

getFromDb() public method

Get the current database structure
public getFromDb ( ) : array
return array An array of tables and fields

getFromDca() public method

Get the DCA table settings from the DCA cache
public getFromDca ( ) : array
return array An array of DCA table settings

getFromFile() public method

Get the DCA table settings from the database.sql files
public getFromFile ( ) : array
return array An array of DCA table settings