[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/installer/ -> PostgresInstaller.php (summary)

PostgreSQL-specific installer. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 677 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PostgresInstaller:: (27 methods):
  getName()
  isCompiled()
  getConnectForm()
  submitConnectForm()
  getConnection()
  openConnection()
  openConnectionWithParams()
  getPgConnection()
  openPgConnection()
  openConnectionToAnyDB()
  getInstallUserPermissions()
  canCreateAccounts()
  isSuperUser()
  getSettingsForm()
  submitSettingsForm()
  canCreateObjectsForWebUser()
  isRoleMember()
  preInstall()
  setupDatabase()
  setupSchema()
  commitChanges()
  setupUser()
  getLocalSettings()
  preUpgrade()
  createTables()
  getGlobalDefaults()
  setupPLpgSQL()


Class: PostgresInstaller  - X-Ref

Class for setting up the MediaWiki database using Postgres.

getName()   X-Ref
No description

isCompiled()   X-Ref
No description

getConnectForm()   X-Ref
No description

submitConnectForm()   X-Ref
No description

getConnection()   X-Ref


openConnection()   X-Ref
No description

openConnectionWithParams( $user, $password, $dbName, $schema )   X-Ref
Open a PG connection with given parameters

param: string $user User name
param: string $password Password
param: string $dbName Database name
param: string $schema Database schema
return: Status

getPgConnection( $type )   X-Ref
Get a special type of connection

param: string $type See openPgConnection() for details.
return: Status

openPgConnection( $type )   X-Ref
Get a connection of a specific PostgreSQL-specific type. Connections
of a given type are cached.

PostgreSQL lacks cross-database operations, so after the new database is
created, you need to make a separate connection to connect to that
database and add tables to it.

New tables are owned by the user that creates them, and MediaWiki's
PostgreSQL support has always assumed that the table owner will be
$wgDBuser. So before we create new tables, we either need to either
connect as the other user or to execute a SET ROLE command. Using a
separate connection for this allows us to avoid accidental cross-module
dependencies.

param: string $type The type of connection to get:
return: Status On success, a connection object will be in the value member.

openConnectionToAnyDB( $user, $password )   X-Ref


getInstallUserPermissions()   X-Ref
No description

canCreateAccounts()   X-Ref


isSuperUser()   X-Ref
No description

getSettingsForm()   X-Ref
No description

submitSettingsForm()   X-Ref
No description

canCreateObjectsForWebUser()   X-Ref
Returns true if the install user is able to create objects owned
by the web user, false otherwise.

return: bool

isRoleMember( $conn, $targetMember, $group, $maxDepth )   X-Ref
Recursive helper for canCreateObjectsForWebUser().

param: DatabaseBase $conn
param: int $targetMember Role ID of the member to look for
param: int $group Role ID of the group to look for
param: int $maxDepth Maximum recursive search depth
return: bool

preInstall()   X-Ref
No description

setupDatabase()   X-Ref
No description

setupSchema()   X-Ref
No description

commitChanges()   X-Ref
No description

setupUser()   X-Ref
No description

getLocalSettings()   X-Ref
No description

preUpgrade()   X-Ref
No description

createTables()   X-Ref
No description

getGlobalDefaults()   X-Ref


setupPLpgSQL()   X-Ref
No description



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1