b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.10) [ class tree: install ] [ index: install ] [ all elements ]

Procedural File: _functions_create.php

Source Location: /blogs/install/_functions_create.php

Page Details

This file implements creation of DB tables

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

Author:  fplanque: Francois PLANQUE.
Author:  blueyed: Daniel HAHLER.
Author:  edgester: Jason EDGECOMBE.
Author:  vegarg: Vegar BERG GULDAL.
Author:  mfollett: Matt Follett.
Version:  $Id: _functions_create.php,v 1.194.2.6.2.3 2007/05/02 14:03:45 fplanque Exp $
Copyright:  (c)2003-2007 by Francois PLANQUE - http://fplanque.net/ Parts of this file are copyright (c)2004 by Vegar BERG GULDAL - http://funky-m.com/ Parts of this file are copyright (c)2005 by Jason EDGECOMBE
Filesource:  Source Code for this file
License:  GNU General Public License (GPL)
Functions
blog_create  [line 362]

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

[ Top ]
create_b2evo_relations  [line 827]

void create_b2evo_relations( )

Create relations



[ Top ]
create_b2evo_tables  [line 49]

void create_b2evo_tables( )

Create b2 tables.

Used for fresh install + upgrade from b2



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


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


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


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


[ Top ]
create_groups  [line 194]

void create_groups( )

Create user permissions

WARNING: changing this may break the upgrade path Used when creating full install and upgrading from earlier versions



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


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


[ Top ]
populate_main_tables  [line 677]

void populate_main_tables( )

This is called only for fresh installs and fills the tables with demo/tutorial things.



[ Top ]


Documentation generated on Tue, 20 May 2008 01:40:37 +0200 by phpDocumentor 1.4.2