Packageindex Classtrees Elementlist

File: /home/jerry/www/vb3/impex/ImpExDatabase.php
vB3 ImpEx Import system - ImpEx

ImpExDatabase

ImpExFunction
   |
  +-- ImpExDatabase

The database proxy object.

 

private class ImpExDatabase extends ImpExFunction

The database proxy object.
This handles interaction with the different types of database.

AuthorsJerry Hutchings <jerry.hutchings@vbulletin.com>
Version$Revision: 1.89 $
Copyrighthttp://www.vbulletin.com/license.html

 
Direct known subclasses: ImpExData, ImpExModule

Methods inherited from ImpExFunction

impexfunction, option2bin, over_ride_test, iif, unhtmlspecialchars, vb_parse_url, vb_file_get_contents, return_style_array, html_2_bb, parse_smilie_callback, all_your_posts_are_belong_to_us

Public Method Summary

void

ImpExDatabase()

Constructor

Private Method Summary

array

create_data_type(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $type)

Retrieves the values needed to define a ImpExData object
array

add_import_id(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $tablename, string $importname)

Modifies a table to include an importid
array

add_custom_field(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $profiletitle, string $profiledescription)

Modifys the profilefield AND usertextfield table for a custom user entry
int

import_pm_text(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports the current objects values as a PMtext and returns the insert_id
boolean

import_pm(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports the current objects values as a PM
boolean

import_buddy_ignore(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, $user)

Imports the current objects values as a buddy or ignore value, needs an array of :
boolean

import_ban_list(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, $list, $type)

Imports the an arrary as a ban list in various formats $key => $value, $int => $data
boolean

import_post(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports the current objects values as a Post
boolean

import_user(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports the current objects values as a User
string

fetch_user_salt([ integer $length ])

Copy of the function_user.php fetch_user_salt
void

import_avatar(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $userid, string $file)

Imports the users avatar from a local file or URL.
void

import_user_group(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports a usergroup
boolean

import_category(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports the current objects values as a Forum
boolean

import_forum(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports the current objects values as a Forum
boolean

import_thread(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports the current objects values as a Thread
boolean

import_moderator(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports the current objects values as a Moderator
boolean

import_style_array(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $stylearray)

Imports the current objects values as a Style
boolean

import_user_field_value(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $title, string $value, $userid)

Imports a customer userfield value
boolean

add_admin_user(object databaseobject &$Db_object)

Moves a user into the administrators group
int

import_rank(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports a rank, has to be used incombination with import usergroup to make sense get its usergroupid
int

import_usergroup(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports a rank, has to be used incombination with import usergroup to make sense get its usergroupid
int

get_vb_userid(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $importuserid)

Returns the vBuserd id associated with an importid
int

get_one_username(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $theuserid, [ string $id ])

Returns the username by searching on the importuserid or the userid
int

get_user_array(object databaseobject &$Db_object)

Returns a 2D array of the users [userid][username][importuserid]
string

get_banned_group(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Returns a string of the banned group id
string

get_imported_group_ids(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Returns an array of the 'importedusergroupid'=>'usergroupid'
int

get_thread_id(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string &$importthreadid, string &$forumid)

Returns a vB thread id
array

get_threads_ids(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Returns a vB thread id array
array

get_category_ids(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Returns an array of the forum ids key'ed to the importforum id's
array

get_style_ids(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, [ integer $pad ])

Returns an array of the style ids key'ed to the import style id's
string

get_done_user_ids(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Returns an array of 'import_user_id' => 'vb_user_id'
array

get_user_ids(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, boolean $do_int_val)

Returns an array of the user ids key'ed to the import user id's $userid[$importuserid] = $user[userid]
array

get_username(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Returns an array of the import user ids key'ed to the username
array

get_forum_ids(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, [ integer $pad ])

Returns an array of the forum ids key'ed to the import forum id's
boolean

clear_ban_list(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears ALL the IP AND email address in the banlists
boolean

clear_imported_styles(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported styles
boolean

clear_imported_forums(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported forums
boolean

clear_imported_threads(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported threads
boolean

clear_banned_users(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently banned users
boolean

clear_imported_users(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported users
boolean

clear_imported_posts(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported posts
boolean

clear_imported_polls(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported polls
boolean

clear_imported_buddy_list(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported buddy list(s) from the currently imported users
boolean

clear_imported_ignore_list(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported ignore list(s) from the currently imported users
boolean

clear_imported_private_messages(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported pm's & pmtext's from the currently imported users
boolean

clear_imported_moderators(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported moderators
boolean

clear_imported_smilies(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported smilies
boolean

clear_imported_user_groups(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported smilies
boolean

clear_imported_ranks(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported ranks
boolean

clear_imported_usergroups(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Clears the currently imported usergroups
boolean

update_post_parent_ids(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Updates the parentids of the posts in the database if they are 0
boolean

associate_user(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $key, string $value)

Set as users importuserid, used when linking import users during assosiate
boolean

check_database(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $boardtype)

Set as users importuserid, used when linking import users during assosiate
boolean

import_poll(object databaseobject &$Db_object)

Set as users importuserid, used when linking import users during assosiate
boolean

import_poll_to_thread(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $vb_poll_id, string $import_thread_id)

Updates a thread pollid
boolean

import_poll_voters(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $poll_voters_array, string $vb_poll_id)

Updates a thread pollid
boolean

does_smilie_exists(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $smilie)

Checks for a smilie text
boolean

import_smilie(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix)

Imports the current objects values as a Smilie
boolean

set_forum_private(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, &$forum_id)

Updates forum permissions
void

import_smilie_image_group( &$Db_object, &$databasetype, &$tableprefix)

Warning: documentation is missing.
void

clear_non_admin_users( &$Db_object, &$databasetype, &$tableprefix)

Warning: documentation is missing.

Fields inherited from ImpExFunction

$_smilies

Private Field Summary

string

$_version

Class version
string

$_customernumber

Public Method Details

ImpExDatabase

public void ImpExDatabase( )

  Constructor
Empty

Returns void


Private Method Details

create_data_type

private array create_data_type( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $type )

  Retrieves the values needed to define a ImpExData object

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $type
The type of object being created
Returns array

|boolean


add_import_id

private array add_import_id( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $tablename, string $importname )

  Modifies a table to include an importid

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $tablename
The name of the table to change
string $importname
The name of the field to add to the table
Returns array

|boolean


add_custom_field

private array add_custom_field( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $profiletitle, string $profiledescription )

  Modifys the profilefield AND usertextfield table for a custom user entry

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $profiletitle
The title of the custom field
string $profiledescription
The description of the custom field
Returns array

|boolean


import_pm_text

private int import_pm_text( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports the current objects values as a PMtext and returns the insert_id
string

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns int

insert_id


import_pm

private boolean import_pm( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports the current objects values as a PM

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


import_buddy_ignore

private boolean import_buddy_ignore( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, $user )

  Imports the current objects values as a buddy or ignore value, needs an array of :
$user('userid' => 'vbuserid''buddylist' => space delimited buddy ids'ignorelist' => space delimited ignore ids

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
$user
Warning: documentation is missing.
Returns boolean


import_ban_list

private boolean import_ban_list( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, $list, $type )

  Imports the an arrary as a ban list in various formats $key => $value, $int => $data

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
$list
Warning: documentation is missing.
$type
Warning: documentation is missing.
Returns boolean


import_post

private boolean import_post( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports the current objects values as a Post

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


import_user

private boolean import_user( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports the current objects values as a User

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


fetch_user_salt

private string fetch_user_salt( [ integer $length ] )

  Copy of the function_user.php fetch_user_salt

Parameter
integer $length = >>3<<
The lenght of the salt
Returns string


import_avatar

private void import_avatar( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $userid, string $file )

  Imports the users avatar from a local file or URL.

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $userid
The userid
string $file
The location of the avatar file
Returns void


import_user_group

private void import_user_group( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports a usergroup

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns void


import_category

private boolean import_category( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports the current objects values as a Forum

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


import_forum

private boolean import_forum( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports the current objects values as a Forum

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


import_thread

private boolean import_thread( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports the current objects values as a Thread

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


import_moderator

private boolean import_moderator( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports the current objects values as a Moderator

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


import_style_array

private boolean import_style_array( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $stylearray )

  Imports the current objects values as a Style

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $stylearray
The prefix to the table name i.e. 'vb3_'
Returns boolean


import_user_field_value

private boolean import_user_field_value( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $title, string $value, $userid )

  Imports a customer userfield value

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $title
The key i.e. 'surname'
string $value
The value i.e. 'Hutchings'
$userid
Warning: documentation is missing.
Returns boolean


add_admin_user

private boolean add_admin_user( object databaseobject &$Db_object )

  Moves a user into the administrators group

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
Returns boolean


import_rank

private int import_rank( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports a rank, has to be used incombination with import usergroup to make sense get its usergroupid

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns int

The tablerow inc id


import_usergroup

private int import_usergroup( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports a rank, has to be used incombination with import usergroup to make sense get its usergroupid

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns int

The tablerow inc id


get_vb_userid

private int get_vb_userid( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $importuserid )

  Returns the vBuserd id associated with an importid

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $importuserid
The imported user id
Returns int


get_one_username

private int get_one_username( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $theuserid, [ string $id ] )

  Returns the username by searching on the importuserid or the userid

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $theuserid
The user id
string $id = >>'importuserid'<<
A switch to indicate if you are searching on the importuserid or the userid
Returns int


get_user_array

private int get_user_array( object databaseobject &$Db_object )

  Returns a 2D array of the users [userid][username][importuserid]

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
Returns int


get_banned_group

private string get_banned_group( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Returns a string of the banned group id

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns string

mixed The id/name of the Banned group (needs to be updated for permissions)


get_imported_group_ids

private string get_imported_group_ids( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Returns an array of the 'importedusergroupid'=>'usergroupid'

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns string

mixed The id/name of the Banned group (needs to be updated for permissions)


get_thread_id

private int get_thread_id( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string &$importthreadid, string &$forumid )

  Returns a vB thread id

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string &$importthreadid
The imported thread id
string &$forumid
The imported forum id
Returns int

mixed The vb id of the thread


get_threads_ids

private array get_threads_ids( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Returns a vB thread id array

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns array

mixed The array of vb ids of the threads


get_category_ids

private array get_category_ids( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Returns an array of the forum ids key'ed to the importforum id's

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns array

mixed The vb id of the thread


get_style_ids

private array get_style_ids( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, [ integer $pad ] )

  Returns an array of the style ids key'ed to the import style id's

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
integer $pad = >>0<<
0|1 Wether or not to inval the import style id
Returns array

mixed The vb id of the thread


get_done_user_ids

private string get_done_user_ids( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Returns an array of 'import_user_id' => 'vb_user_id'

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns string

mixed importuser id delimited string


get_user_ids

private array get_user_ids( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, boolean $do_int_val )

  Returns an array of the user ids key'ed to the import user id's $userid[$importuserid] = $user[userid]

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
boolean $do_int_val
Warning: documentation is missing.
Returns array

mixed Data array[importuserid] = userid


get_username

private array get_username( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Returns an array of the import user ids key'ed to the username

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns array

mixed Data array[importuserid] = username


get_forum_ids

private array get_forum_ids( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, [ integer $pad ] )

  Returns an array of the forum ids key'ed to the import forum id's

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
integer $pad = >>0<<
0|1 Wether or not to inval the import forum id
Returns array

mixed Data array[impforumid] = forumid


clear_ban_list

private boolean clear_ban_list( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears ALL the IP AND email address in the banlists

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_styles

private boolean clear_imported_styles( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported styles

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_forums

private boolean clear_imported_forums( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported forums

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_threads

private boolean clear_imported_threads( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported threads

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_banned_users

private boolean clear_banned_users( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently banned users

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_users

private boolean clear_imported_users( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported users

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_posts

private boolean clear_imported_posts( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported posts

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_polls

private boolean clear_imported_polls( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported polls

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_buddy_list

private boolean clear_imported_buddy_list( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported buddy list(s) from the currently imported users

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_ignore_list

private boolean clear_imported_ignore_list( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported ignore list(s) from the currently imported users

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_private_messages

private boolean clear_imported_private_messages( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported pm's & pmtext's from the currently imported users

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_moderators

private boolean clear_imported_moderators( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported moderators

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_smilies

private boolean clear_imported_smilies( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported smilies

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_user_groups

private boolean clear_imported_user_groups( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported smilies

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_ranks

private boolean clear_imported_ranks( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported ranks

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


clear_imported_usergroups

private boolean clear_imported_usergroups( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Clears the currently imported usergroups

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


update_post_parent_ids

private boolean update_post_parent_ids( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Updates the parentids of the posts in the database if they are 0

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


associate_user

private boolean associate_user( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $key, string $value )

  Set as users importuserid, used when linking import users during assosiate

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $key
The user_id from the soruce board being imported
string $value
The vB userid to associate with
Returns boolean


check_database

private boolean check_database( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $boardtype )

  Set as users importuserid, used when linking import users during assosiate

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $boardtype
The board type that we are importing from
Returns boolean


import_poll

private boolean import_poll( object databaseobject &$Db_object )

  Set as users importuserid, used when linking import users during assosiate

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
Returns boolean


import_poll_to_thread

private boolean import_poll_to_thread( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $vb_poll_id, string $import_thread_id )

  Updates a thread pollid

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $vb_poll_id
The vB poll id
string $import_thread_id
The import thread id of the thread that you want to attach the poll to
Returns boolean


import_poll_voters

private boolean import_poll_voters( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $poll_voters_array, string $vb_poll_id )

  Updates a thread pollid

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $poll_voters_array
poll_voters_array = $var = array ( 'vb_user_id' => 'vote_option'); etc
string $vb_poll_id
The vB poll id
Returns boolean


does_smilie_exists

private boolean does_smilie_exists( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, string $smilie )

  Checks for a smilie text

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
string $smilie
array( title => '', smilietext => '', smiliepath => '')
Returns boolean


import_smilie

private boolean import_smilie( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix )

  Imports the current objects values as a Smilie

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
Returns boolean


set_forum_private

private boolean set_forum_private( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, &$forum_id )

  Updates forum permissions

Parameter
object databaseobject &$Db_object
The database that the function is going to interact with.
string &$databasetype
The type of database 'mysql', 'postgresql', etc
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
&$forum_id
Warning: documentation is missing.
Returns boolean


import_smilie_image_group

private void import_smilie_image_group( &$Db_object, &$databasetype, &$tableprefix )

 

Warning: documentation is missing.

Parameter
&$Db_object
Warning: documentation is missing.
&$databasetype
Warning: documentation is missing.
&$tableprefix
Warning: documentation is missing.
Returns void


clear_non_admin_users

private void clear_non_admin_users( &$Db_object, &$databasetype, &$tableprefix )

 

Warning: documentation is missing.

Parameter
&$Db_object
Warning: documentation is missing.
&$databasetype
Warning: documentation is missing.
&$tableprefix
Warning: documentation is missing.
Returns void


Private Field Details

$_version

private string $_version

>>'0.0.1'<<

Class version
This will allow the checking for inter-operability of class version in differentversions of ImpEx


$_customernumber

private string $_customernumber

>>'[#]customernumber[#]'<<




Packageindex Classtrees Elementlist
PHPDoc 1.0beta