Procedural File: _functions_install.php
Source Location: /blogs/install/_functions_install.php
Functions
advanced_properties [line 520]
void advanced_properties(
)
|
|
cleanup_comment_quotes [line 283]
void cleanup_comment_quotes(
)
|
|
Clean up extra quotes in comments
create_default_settings [line 335]
void create_default_settings(
[array $override = array()]
)
|
|
Insert default settings into T_settings.
It only writes those to DB, that get overridden (passed as array), or have no default in _generalsettings.class.php / GeneralSettings::default.
Parameters:
|
array |
$override: |
associative array (settings name => value to use), allows overriding of defaults |
create_relations [line 537]
Create relations
Information Tags:
| Todo: | NOT UP TO DATE AT ALL :( -- update field names before activating this |
boolean db_col_exists(
$table, $col_name
)
|
|
Parameters:
API Tags:
| Return: | Does a given column name exist in DB? |
display_base_config_recap [line 85]
void display_base_config_recap(
)
|
|
Base config recap
display_locale_selector [line 44]
void display_locale_selector(
)
|
|
Language selector
do_install_htaccess [line 763]
mixed do_install_htaccess(
[boolean $upgrade = false]
)
|
|
This does the actual file manipulations for installing .htaccess
Parameters:
|
boolean |
$upgrade: |
are we upgrading (vs installing)? |
get_antispam_query [line 820]
string; get_antispam_query(
)
|
|
Return antispam SQL query.
This is obfuscated because some hosting companies prevent uploading PHP files containing "spam" strings.
get_db_version [line 229]
install_basic_plugins [line 421]
void install_basic_plugins(
[integer $old_db_version = 0]
)
|
|
Install basic plugins.
This gets called separately on fresh installs.
Parameters:
|
integer |
$old_db_version: |
Old DB version, so that only new plugins gets installed |
install_basic_skins [line 372]
void install_basic_skins(
)
|
|
Install basic skins.
install_basic_widgets [line 507]
void install_basic_widgets(
)
|
|
Install basic widgets.
install_htaccess [line 744]
string install_htaccess(
[ $upgrade = false]
)
|
|
Install htaccess: Check if it works with the webserver, then install it for real.
Parameters:
API Tags:
install_plugin [line 471]
true install_plugin(
$plugin
)
|
|
Parameters:
API Tags:
install_validate_requirements [line 318]
array install_validate_requirements(
)
|
|
Validate install requirements.
API Tags:
| Return: | List of errors, empty array if ok. |
load_db_schema [line 717]
Loads the b2evo database scheme.
This gets updated through db_delta() which generates the queries needed to get to this scheme.
Please see db_delta() for things to take care of.
void task_begin(
$title
)
|
|
Begin install task.
This will offer other display methods in the future
Parameters:
End install task.
This will offer other display methods in the future