[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/installation/src/Helper/ -> DatabaseHelper.php (summary)

(no description)

Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 500 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  getDbo()
  getEncryptionSettings()
  getMinimumServerVersion()
  validateConnectionParameters()
  checkRemoteDbHost()
  checkDbServerParameters()

Functions
Functions that are not part of a class:

getDbo($driver, $host, $user, $password, $database, $prefix, $select = true, array $ssl = [])   X-Ref
Method to get a database driver.

param: string   $driver    The database driver to use.
param: string   $host      The hostname to connect on.
param: string   $user      The user name to connect with.
param: string   $password  The password to use for connection authentication.
param: string   $database  The database to use.
param: string   $prefix    The table prefix to use.
param: boolean  $select    True if the database should be selected.
param: array    $ssl       Database TLS connection options.
return: DatabaseInterface

getEncryptionSettings($options)   X-Ref
Convert encryption options to array.

param: \stdClass  $options  The session options
return: array  The encryption settings

getMinimumServerVersion($db, $options)   X-Ref
Get the minimum required database server version.

param: DatabaseDriver  $db       Database object
param: \stdClass       $options  The session options
return: string  The minimum required database server version.

validateConnectionParameters($options)   X-Ref
Validate and clean up database connection parameters.

param: \stdClass       $options  The session options
return: string|boolean  A string with the translated error message if

checkRemoteDbHost($options)   X-Ref
Security check for remote db hosts

param: \stdClass       $options  The session options
return: boolean         True if passed, otherwise false.

checkDbServerParameters($db, $options)   X-Ref
Check database server parameters after connection

param: DatabaseDriver  $db       Database object
param: \stdClass       $options  The session options
return: string|boolean  A string with the translated error message if



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer