[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/ -> functions_install.php (summary)

(no description)

Copyright: (c) 2006 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 606 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 10 functions

  can_load_dll()
  get_available_dbms()
  dbms_select()
  get_tables()
  connect_check_db()
  remove_remarks()
  phpbb_remove_comments()
  split_sql_file()
  adjust_language_keys_callback()
  phpbb_create_config_file_data()

Functions
Functions that are not part of a class:

can_load_dll($dll)   X-Ref
Determine if we are able to load a specified PHP module and do so if possible


get_available_dbms($dbms = false, $return_unavailable = false, $only_20x_options = false)   X-Ref
Returns an array of available DBMS with some data, if a DBMS is specified it will only
return data for that DBMS and will load its extension if necessary.


dbms_select($default = '', $only_20x_options = false)   X-Ref
Generate the drop down of available database options


get_tables(&$db)   X-Ref
Get tables of a database


connect_check_db($error_connect, &$error, $dbms_details, $table_prefix, $dbhost, $dbuser, $dbpasswd, $dbname, $dbport, $prefix_may_exist = false, $load_dbal = true, $unicode_check = true)   X-Ref
Used to test whether we are able to connect to the database the user has specified
and identify any problems (eg there are already tables with the names we want to use

param: array    $dbms should be of the format of an element of the array returned by {@link get_available_dbms get_available_dbms()}

remove_remarks(&$sql)   X-Ref
Removes comments from schema files


phpbb_remove_comments($input)   X-Ref
Removes "/* style" as well as "# style" comments from $input.

param: string $input        Input string
return: string            Input string with comments removed

split_sql_file($sql, $delimiter)   X-Ref
split_sql_file will split an uploaded sql file into single sql statements.
Note: expects trim() to have already been run on $sql.


adjust_language_keys_callback($matches)   X-Ref
For replacing {L_*} strings with preg_replace_callback


phpbb_create_config_file_data($data, $dbms, $load_extensions, $debug = false, $debug_test = false)   X-Ref
Creates the output to be stored in a phpBB config.php file

param: array    $data Array containing the database connection information
param: string    $dbms The name of the DBAL class to use
param: array    $load_extensions Array of additional extensions that should be loaded
param: bool    $debug If the debug constants should be enabled by default or not
param: bool    $debug_test If the DEBUG_TEST constant should be added
return: string    The output to write to the file



Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1