[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/installation/models/ -> database.php (summary)

(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.txt
File Size: 571 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JInstallationModelDatabase:: (8 methods):
  initialise()
  installSampleData()
  backupDatabase()
  createDatabase()
  deleteDatabase()
  populateDatabase()
  setDatabaseCharset()
  _splitQueries()


Class: JInstallationModelDatabase  - X-Ref

Database configuration model for the Joomla Core Installer.

initialise($options)   X-Ref
No description

installSampleData($options)   X-Ref
No description

backupDatabase(& $db, $name, $prefix)   X-Ref
Method to backup all tables in a database with a given prefix.

param: JDatabase    &$db    JDatabase object.
param: string        $name    Name of the database to process.
param: string        $prefix    Database table prefix.
return: boolean    True on success.

createDatabase(& $db, $name)   X-Ref
Method to create a new database.

param: JDatabase    &$db    JDatabase object.
param: string        $name    Name of the database to create.
return: boolean    True on success.

deleteDatabase(& $db, $name, $prefix)   X-Ref
Method to delete all tables in a database with a given prefix.

param: JDatabase    &$db    JDatabase object.
param: string        $name    Name of the database to process.
param: string        $prefix    Database table prefix.
return: boolean    True on success.

populateDatabase(& $db, $schema)   X-Ref
Method to import a database schema from a file.

param: JDatabase    &$db    JDatabase object.
param: string        $schema    Path to the schema file.
return: boolean    True on success.

setDatabaseCharset(& $db, $name)   X-Ref
Method to set the database character set to UTF-8.

param: JDatabase    &$db    JDatabase object.
param: string        $name    Name of the database to process.
return: boolean    True on success.

_splitQueries($sql)   X-Ref
Method to split up queries from a schema file into an array.

param: string    $sql SQL schema.
return: array    Queries to perform.



Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1