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 | |
__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>
.
\JDatabaseDriver | $db | The current database object |
string | $folder | The full path to the folder containing the update queries |
Références $db, $folder, 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.
getStatus | ( | ) |
Returns an array of results for this set
Références $item.
|
private |
Get list of SQL update files for this database
Références JPATH_ADMINISTRATOR.
|
private |
Get array of SQL queries
array | $sqlfiles | Array of .sql update filenames. |
Références $buffer, $file, $query, et JDatabaseDriver\splitSql().
|
protected |
|
protected |
|
staticprotected |