dokeos-install
[ class tree: dokeos-install ] [ index: dokeos-install ] [ all elements ]

Procedural File: update_db.inc.php

Source Location: /main/install/update_db.inc.php



Page Details:

Update the Dokeos database from an older version Notice : This script has to be included by index.php or update_courses.php



Tags:

todo:  - conditional changing of tables. Currently we execute for example ALTER TABLE `$dbNameForm`.`cours` instructions without checking wether this is necessary.
  • reorganise code into functions
todo:  use database library


Includes:

include("../lang/$languageForm/create_course.inc.php") [line 124]
include("../lang/english/create_course.inc.php") [line 372]
We connect to the right DB first to make sure we can use the queries

without a database name


include("../lang/$languageCourse/create_course.inc.php") [line 376]
include("../lang/english/create_course.inc.php") [line 119]
Update the databases "pre" migration

require_once("install_upgrade.lib.php") [line 42]
Update the Dokeos database from an older version Notice : This script has to be included by index.php or update_courses.php



Tags:

todo:  - conditional changing of tables. Currently we execute for example ALTER TABLE `$dbNameForm`.`cours` instructions without checking wether this is necessary.
  • reorganise code into functions
todo:  use database library






get_added_resources [line 658]

void get_added_resources( )

This function gets all the added resources for phpbb forum posts



Tags:

author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University
todo:  is this the same function as in forumfunction.inc.php? If this is the case then it should not appear here.


[ Top ]



get_forumcategory_id_by_name [line 678]

void get_forumcategory_id_by_name( $forum_category_name)

This function gets the forum category information based on the name



Tags:

author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University
todo:  is this the same function as in forumfunction.inc.php? If this is the case then it should not appear here.


Parameters

   $forum_category_name  
[ Top ]



migrate_posts_of_thread [line 580]

void migrate_posts_of_thread( $phpbb_forum_id $phpbb_thread_id, $new_forum_id $new_forum_thread_id, $new_forum_id)

This function migrates the posts of a given phpbb thread (topic) to a thread in the new forum tool



Tags:

author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University
todo:  is this the same function as in forumfunction.inc.php? If this is the case then it should not appear here.


Parameters

$phpbb_forum_id   $phpbb_thread_id   the forum_id of the old (phpbb) forum
$new_forum_id   $new_forum_thread_id   the forum_id in the new forum
   $new_forum_id  
[ Top ]



migrate_threads_of_forum [line 530]

void migrate_threads_of_forum( $phpbb_forum_id $phpbb_forum_id, $new_forum_id $new_forum_id)

This function migrates the threads of a given phpbb forum to a new forum of the new forum tool



Tags:

author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University
todo:  is this the same function as in forumfunction.inc.php? If this is the case then it should not appear here.


Parameters

$phpbb_forum_id   $phpbb_forum_id   the forum_id of the old (phpbb) forum
$new_forum_id   $new_forum_id   the forum_id in the new forum
[ Top ]



store_forum [line 451]

void store_forum( $values)

This function stores the forum in the database. The new forum is added to the end.



Tags:

author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University
todo:  is this the same function as in forumfunction.inc.php? If this is the case then it should not appear here.


Parameters

   $values  
[ Top ]



store_forumcategory [line 427]

void store_forumcategory( $values)

This function stores the forum category in the database. The new category is added to the end.



Tags:

author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University
todo:  is this the same function as in forumfunction.inc.php? If this is the case then it should not appear here.


Parameters

   $values  
[ Top ]



store_thread [line 490]

void store_thread( $values)

This function stores a new thread. This is done through an entry in the forum_thread table AND

in the forum_post table because. The threads are also stored in the item_property table. (forum posts are not (yet))




Tags:

author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University
todo:  is this the same function as in forumfunction.inc.php? If this is the case then it should not appear here.


Parameters

   $values  
[ Top ]



Documentation generated on Wed, 05 Sep 2007 06:15:13 +0200 by phpDocumentor 1.4.0