\InstallationModelDatabase
Database configuration model for the Joomla Core Installer.
Synopsis
class InstallationModelDatabase
extends JModelBase
{
- // members
- protected $userId;
- // Inherited members from JModelBase
- protected JRegistry $state;
- // methods
- protected static integer generateRandUserId()
- public static void resetRandUserId()
- public static integer getUserId()
- public boolean initialise()
- public boolean createDatabase()
- public boolean handleOldDatabase()
- public boolean createTables()
- public boolean installSampleData()
- protected void postInstallSampleData()
- public boolean backupDatabase()
- public boolean createDB()
- public boolean deleteDatabase()
- public boolean populateDatabase()
- public boolean setDatabaseCharset()
- protected array _splitQueries()
- // Inherited methods from JModelBase
- public void __construct()
- public JRegistry getState()
- public void setState()
- protected JRegistry loadState()
Hierarchy
Extends
Members
protected
- $state
—
JRegistry
The model state. - $userId
—
integer
The generated user ID
Methods
protected
- _splitQueries() — Method to split up queries from a schema file into an array.
- generateRandUserId() — Generates the user ID
- postInstallSampleData() — Method to update the user id of the sample data content to the new rand user id
public
- backupDatabase() — Method to backup all tables in a database with a given prefix.
- createDB() — Method to create a new database.
- createDatabase() — Method to create a new database.
- createTables() — Method to create the database tables
- deleteDatabase() — Method to delete all tables in a database with a given prefix.
- getUserId() — Retrieves the default user ID and sets it if necessary
- handleOldDatabase() — Method to process the old database
- initialise() — Method to initialise the database
- installSampleData() — Method to install the sample data
- populateDatabase() — Method to import a database schema from a file.
- resetRandUserId() — Resets the user ID
- setDatabaseCharset() — Method to set the database character set to UTF-8.
Inherited from JModelBase
protected
- loadState() — Load the model state.
public
- getState() — Get the model state.
- setState() — Set the model state.