[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
(no description)
Copyright: | (C) 2009 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE.txt |
File Size: | 518 lines (17 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
DatabaseModel:: (9 methods):
getOptions()
initialise()
createDatabase()
handleOldDatabase()
createTables()
backupDatabase()
createDb()
populateDatabase()
splitQueries()
Class: DatabaseModel - X-Ref
Database configuration model for the Joomla Core Installer.getOptions() X-Ref |
Get the current setup options from the session. return: array An array of options from the session. |
initialise($select = true) X-Ref |
Method to initialise the database. param: boolean $select Select the database when creating the connections. return: DatabaseInterface|boolean Database object on success, boolean false on failure |
createDatabase() X-Ref |
Method to create a new database. return: boolean |
handleOldDatabase() X-Ref |
Method to process the old database. return: boolean True on success. |
createTables($schema) X-Ref |
Method to create the database tables. param: string $schema The SQL schema file to apply. return: boolean True on success. |
backupDatabase($db, $prefix) X-Ref |
Method to backup all tables in a database with a given prefix. param: DatabaseDriver $db JDatabaseDriver object. param: string $prefix Database table prefix. return: boolean True on success. |
createDb($db, $options, $utf) X-Ref |
Method to create a new database. param: DatabaseDriver $db Database object. param: CMSObject $options CMSObject coming from "initialise" function to pass user param: boolean $utf True if the database supports the UTF-8 character set. return: boolean True on success. |
populateDatabase($db, $schema) X-Ref |
Method to import a database schema from a file. param: \Joomla\Database\DatabaseInterface $db JDatabase object. param: string $schema Path to the schema file. return: boolean True on success. |
splitQueries($query) X-Ref |
Method to split up queries from a schema file into an array. param: string $query SQL schema. return: array Queries to perform. |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |