Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($db, $folder=null) | |
check () | |
fix () | |
getStatus () | |
getSchema () | |
Fonctions membres publiques statiques | |
static | getInstance ($db, $folder=null) |
Attributs protégés | |
$changeItems = array() | |
$db = null | |
$folder = null | |
Attributs protégés statiques | |
static | $instance |
Fonctions membres privées | |
getUpdateFiles () | |
getUpdateQueries (array $sqlfiles) | |
Contains a set of JSchemaChange objects for a particular instance of Joomla. Each of these objects contains a DDL query that should have been run against the database when this database was created or updated. This enables the Installation Manager to check that the current database schema is up to date.
__construct | ( | $db, | |
$folder = null |
|||
) |
Constructor: builds array of $changeItems by processing the .sql files in a folder. The folder for the Joomla core updates is administrator/components/com_admin/sql/updates/<database>
.
DatabaseDriver | $db | The current database object |
string | $folder | The full path to the folder containing the update queries |
Références $db, $folder, $rows, $this, et ChangeItem\getInstance().
check | ( | ) |
Checks the database and returns an array of any errors found. Note these are not database errors but rather situations where the current schema is not up to date.
Références $item.
fix | ( | ) |
|
static |
getSchema | ( | ) |
Gets the current database schema, based on the highest version number. Note that the .sql files are named based on the version and date, so the file name of the last file should match the database schema version in the #__schemas table.
Références $result.
getStatus | ( | ) |
|
private |
Get list of SQL update files for this database
Références Folder\files(), et JPATH_ADMINISTRATOR.
|
private |
Get array of SQL queries
array | $sqlfiles | Array of .sql update filenames. |
Références $buffer, $query, $result, et DatabaseDriver\splitSql().
|
protected |
|
protected |
|
protected |
|
staticprotected |