Procedural File: _functions_create.php
Source Location: /blogs/install/_functions_create.php
Functions
void blog_create(
$blog_name, $blog_shortname, $blog_stub, [ $blog_staticfilename = ''], [ $blog_tagline = ''], [ $blog_longdesc = ''], [ $blog_links_blog_ID = 0]
)
|
|
Create a new a blog This funtion has to handle all needed DB dependencies!
Parameters:
|
|
$blog_name: |
|
|
|
$blog_shortname: |
|
|
|
$blog_stub: |
|
|
|
$blog_staticfilename: |
|
|
|
$blog_tagline: |
|
|
|
$blog_longdesc: |
|
|
|
$blog_links_blog_ID: |
|
Information Tags:
| Todo: | move this to Blog object |
create_b2evo_relations [line 827]
void create_b2evo_relations(
)
|
|
Create relations
create_b2evo_tables [line 49]
void create_b2evo_tables(
)
|
|
Create b2 tables.
Used for fresh install + upgrade from b2
create_default_blogs [line 407]
void create_default_blogs(
[string $blog_a_short = 'Blog A'], [string $blog_a_long = '#'], [string $blog_a_longdesc = '#']
)
|
|
Create default blogs.
This is called for fresh installs and cafelog upgrade.
Parameters:
|
string |
$blog_a_short: |
|
|
string |
$blog_a_long: |
|
|
string |
$blog_a_longdesc: |
|
create_default_categories [line 478]
void create_default_categories(
[boolean $populate_blog_a = true]
)
|
|
Create default categories.
This is called for fresh installs and cafelog upgrade.
Parameters:
|
boolean |
$populate_blog_a: |
|
create_default_contents [line 518]
void create_default_contents(
[boolean $populate_blog_a = true]
)
|
|
Create default contents.
This is called for fresh installs and cafelog upgrade.
Parameters:
|
boolean |
$populate_blog_a: |
|
create_default_settings [line 640]
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 user permissions
WARNING: changing this may break the upgrade path Used when creating full install and upgrading from earlier versions
install_basic_plugins [line 1016]
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 |
populate_linkblog [line 291]
void populate_linkblog(
&$now, $cat_linkblog_b2evo, $cat_linkblog_contrib
)
|
|
Populate the linkblog with contributors to the release...
Parameters:
|
|
&$now: |
|
|
|
$cat_linkblog_b2evo: |
|
|
|
$cat_linkblog_contrib: |
|
populate_main_tables [line 677]
void populate_main_tables(
)
|
|
This is called only for fresh installs and fills the tables with demo/tutorial things.