| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Source view] [Print] [Project Stats]
(no description)
| Copyright: | Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. |
| License: | GNU General Public License version 2 or later; see LICENSE |
| File Size: | 237 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
JSchemaChangeset:: (8 methods):
__construct()
getInstance()
check()
fix()
getStatus()
getSchema()
getUpdateFiles()
getUpdateQueries()
Class: JSchemaChangeset - X-Ref
Contains a set of JSchemaChange objects for a particular instance of Joomla.| __construct($db, $folder = null) X-Ref |
| 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>. param: JDatabase $db The current database object param: string $folder The full path to the folder containing the update queries |
| getInstance($db, $folder) X-Ref |
| Returns the existing JSchemaChangeset object if it exists. Otherwise, it creates a new one. param: JDatabase $db The current database object param: string $folder The full path to the folder containing the update queries return: JSchemaChangeSet The (possibly chached) instance of JSchemaChangeSet |
| check() X-Ref |
| 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. return: array Array of errors if any. |
| fix() X-Ref |
| Runs the update query to apply the change to the database return: void |
| getStatus() X-Ref |
| Returns an array of results for this set return: array associative array of changeitems grouped by unchecked, ok, error, and skipped |
| getSchema() X-Ref |
| 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. return: string the schema version for the database |
| getUpdateFiles() X-Ref |
| Get list of SQL update files for this database return: array list of sql update full-path names |
| getUpdateQueries(array $sqlfiles) X-Ref |
| Get array of SQL queries param: array $sqlfiles Array of .sql update filenames. return: array Array of stdClass objects where: |
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |