b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (CVS HEAD) [ class tree: install ] [ index: install ] [ all elements ]

Procedural File: _functions_install.php

Source Location: /blogs/install/_functions_install.php

Page Details

This file implements support functions for the installer

b2evolution - http://b2evolution.net/ Released under GNU GPL License - http://b2evolution.net/about/license.html

Copyright:  (c)2003-2010 by Francois PLANQUE - http://fplanque.net/
Filesource:  Source Code for this file
Functions
advanced_properties  [line 520]

void advanced_properties( )


[ Top ]
block_close  [line 30]

void block_close( )

Close a block



[ Top ]
block_open  [line 16]

void block_open( )

Open a block



[ Top ]
cleanup_comment_quotes  [line 283]

void cleanup_comment_quotes( )

Clean up extra quotes in comments



[ Top ]
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


[ Top ]
create_relations  [line 537]

void create_relations( )

Create relations


Information Tags:
Todo:  NOT UP TO DATE AT ALL :( -- update field names before activating this

[ Top ]
db_col_exists  [line 258]

boolean db_col_exists( $table, $col_name  )
Parameters:
   $table: 
   $col_name: 

API Tags:
Return:  Does a given column name exist in DB?


[ Top ]
display_base_config_recap  [line 85]

void display_base_config_recap( )

Base config recap



[ Top ]
display_locale_selector  [line 44]

void display_locale_selector( )

Language selector



[ Top ]
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)?


[ Top ]
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.



[ Top ]
get_db_version  [line 229]

void get_db_version( )


[ Top ]
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


[ Top ]
install_basic_skins  [line 372]

void install_basic_skins( )

Install basic skins.



[ Top ]
install_basic_widgets  [line 507]

void install_basic_widgets( )

Install basic widgets.



[ Top ]
install_htaccess  [line 744]

string install_htaccess( [ $upgrade = false]  )

Install htaccess: Check if it works with the webserver, then install it for real.

Parameters:
   $upgrade: 

API Tags:
Return:  error message


[ Top ]
install_newdb  [line 125]

void install_newdb( )

Install new DB.



[ Top ]
install_plugin  [line 471]

true install_plugin( $plugin  )
Parameters:
   $plugin: 

API Tags:
Return:  on success


[ Top ]
install_validate_requirements  [line 318]

array install_validate_requirements( )

Validate install requirements.


API Tags:
Return:  List of errors, empty array if ok.


[ Top ]
load_db_schema  [line 717]

void load_db_schema( )

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.



[ Top ]
task_begin  [line 212]

void task_begin( $title  )

Begin install task.

This will offer other display methods in the future

Parameters:
   $title: 


[ Top ]
task_end  [line 222]

void task_end( )

End install task.

This will offer other display methods in the future



[ Top ]


Documentation generated on Sat, 06 Mar 2010 04:11:19 +0100 by phpDocumentor 1.4.2. This site is hosted and maintained by Daniel HAHLER (Contact).