Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
initialise ($options) | |
createDatabase ($options) | |
handleOldDatabase ($options) | |
createTables ($options) | |
installSampleData ($options) | |
installCmsData ($options) | |
backupDatabase ($db, $prefix) | |
createDb ($db, $options, $utf) | |
deleteDatabase ($db, $prefix) | |
populateDatabase ($db, $schema) | |
setDatabaseCharset ($db, $name) | |
Fonctions membres publiques hérités de JModelBase | |
__construct (Registry $state=null) | |
getState () | |
setState (Registry $state) | |
Fonctions membres publiques statiques | |
static | resetRandUserId () |
static | getUserId () |
Fonctions membres protégées | |
postInstallSampleData ($db, $sampleFileName='') | |
postInstallCmsData ($db) | |
updateUserIds ($db) | |
updateDates ($db) | |
splitQueries ($query) | |
Fonctions membres protégées hérités de JModelBase | |
loadState () | |
Fonctions membres protégées statiques | |
static | generateRandUserId () |
Attributs protégés statiques | |
static | $userId = 0 |
Membres hérités additionnels | |
Attributs protégés hérités de JModelBase | |
$state | |
Database configuration model for the Joomla Core Installer.
backupDatabase | ( | $db, | |
$prefix | |||
) |
Method to backup all tables in a database with a given prefix.
JDatabaseDriver | $db | JDatabaseDriver object. |
string | $prefix | Database table prefix. |
createDatabase | ( | $options | ) |
createDb | ( | $db, | |
$options, | |||
$utf | |||
) |
Method to create a new database.
JDatabaseDriver | $db | JDatabase object. |
JObject | $options | JObject coming from "initialise" function to pass user and database name to database driver. |
boolean | $utf | True if the database supports the UTF-8 character set. |
createTables | ( | $options | ) |
Method to create the database tables.
array | $options | The options array. |
Références $db, $extension, $file, $files, $options, $params, $query, $return, $type, $version, elseif, JPATH_ADMINISTRATOR, et json_encode.
deleteDatabase | ( | $db, | |
$prefix | |||
) |
Method to delete all tables in a database with a given prefix.
JDatabaseDriver | $db | JDatabaseDriver object. |
string | $prefix | Database table prefix. |
|
staticprotected |
Generates the user ID.
|
static |
Retrieves the default user ID and sets it if necessary.
Références $userId.
Référencé par InstallationModelConfiguration\createRootUser().
handleOldDatabase | ( | $options | ) |
initialise | ( | $options | ) |
Method to initialise the database.
array | $options | The options to use for configuration. |
Références $lang, $options, InstallationHelperDatabase\getDbo(), JPATH_ADMINISTRATOR, et JPATH_INSTALLATION.
installCmsData | ( | $options | ) |
installSampleData | ( | $options | ) |
populateDatabase | ( | $db, | |
$schema | |||
) |
Method to import a database schema from a file.
JDatabaseDriver | $db | JDatabase object. |
string | $schema | Path to the schema file. |
If we don't have UTF-8 Multibyte support we'll have to convert queries to plain UTF-8
Note: the JDatabaseDriver::convertUtf8mb4QueryToUtf8 performs the conversion ONLY when necessary, so there's no need to check the conditions in JInstaller.
This is a query which was supposed to convert tables to utf8mb4 charset but the server doesn't support utf8mb4. Therefore we don't have to run it, it has no effect and it's a mere waste of time.
|
protected |
Cms tables and data post install process.
JDatabaseDriver | $db | Database connector object $db*. |
Références $db.
|
protected |
Sample data tables and data post install process.
JDatabaseDriver | $db | Database connector object $db*. |
string | $sampleFileName | The sample dats filename. |
Références $db.
|
static |
Resets the user ID.
Références $userId.
Référencé par InstallationModelConfiguration\createRootUser().
setDatabaseCharset | ( | $db, | |
$name | |||
) |
Method to set the database character set to UTF-8.
JDatabaseDriver | $db | JDatabaseDriver object. |
string | $name | Name of the database to process. |
|
protected |
|
protected |
Method to update the dates of sql data content to the current date.
JDatabaseDriver | $db | Database connector object $db*. |
Références $currentDate, $db, $field, $fields, et $query.
|
protected |
|
staticprotected |