Packageindex Classtrees Elementlist

File: vb3/impex/systems/phpBB2/000.php
vB3 ImpEx Import system - index.phpBB2

phpBB2_000

ImpExFunction
   |
  +-- ImpExDatabase
     |
    +-- ImpExModule
       |
      +-- phpBB2_000

phpBB2_000

 

private class phpBB2_000 extends ImpExModule

phpBB2_000

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

 

Methods inherited from ImpExModule

impexmodule, init, restart, check_order, using, resume, restarted, add_module_error, get_class_list

Methods inherited from ImpExDatabase

impexdatabase, create_data_type, add_import_id, add_custom_field, import_pm_text, import_pm, import_buddy_ignore, import_ban_list, import_post, import_user, fetch_user_salt, import_avatar, import_user_group, import_category, import_forum, import_thread, import_moderator, import_style_array, import_user_field_value, add_admin_user, import_rank, import_usergroup, get_vb_userid, get_one_username, get_user_array, get_banned_group, get_imported_group_ids, get_thread_id, get_threads_ids, get_category_ids, get_style_ids, get_done_user_ids, get_user_ids, get_username, get_forum_ids, clear_ban_list, clear_imported_styles, clear_imported_forums, clear_imported_threads, clear_banned_users, clear_imported_users, clear_imported_posts, clear_imported_polls, clear_imported_buddy_list, clear_imported_ignore_list, clear_imported_private_messages, clear_imported_moderators, clear_imported_smilies, clear_imported_user_groups, clear_imported_ranks, clear_imported_usergroups, update_post_parent_ids, associate_user, check_database, import_poll, import_poll_to_thread, import_poll_voters, does_smilie_exists, import_smilie, set_forum_private, import_smilie_image_group, clear_non_admin_users

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

phpBB2_000()

Warning: documentation is missing.

Private Method Summary

array

phpbb_html(string $text, [ boolean $truncate_smilies ])

HTML parser
array

pixel_size_mapping(string $size, string $text)

Regex call back
array

get_phpbb_members_list(object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, int &$start, int &$per_page)

Returns the user_id => username array
array

get_phpbb2_user_details(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$user_start_at, int &$user_per_page)

Returns the user details array
array

get_list(object databaseobject &$Db_object, object displayobject &$database_type, object sessionobject &$table_prefix, string $type)

Returns a type of ban list
void

do_list(object databaseobject &$Db_target, object displayobject &$displayobject, object sessionobject &$sessionobject, array &$list, string $type)

Imports a list with error handeling
array

get_phpbb_styles(object databaseobject &$DB_object, string &$database_type, string &$table_prefix)

Returns the sytles array
array

get_phpbb2_categories_details(object databaseobject &$DB_object, string &$database_type, string &$table_prefix)

Returns the categories details array
array

get_phpbb2_forum_details(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$forum_start_at, int &$forum_per_page)

Returns the forum details array
array

get_phpbb2_smilie_details(object databaseobject &$DB_object)

Returns the smilie details array
array

get_phpbb2_posts_details(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$post_start_at, int &$post_per_page)

Returns the post details array
array

get_phpbb_post_text(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$post_id)

Returns the post details
array

get_phpbb_truncated_smilies(object databaseobject &$DB_object, string &$database_type, string &$table_prefix)

Returns the truncated smilies
array

get_phpbb2_polls_details(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$poll_start_at, int &$poll_per_page)

Returns the poll details as an array
array

get_phpbb2_poll_results_details(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$poll_id)

Returns the post result details
array

get_phpbb2_vote_voters(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$poll_id)

Returns the poll voter details
array

get_phpbb2_pm_details(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$pm_start_at, int &$pm_per_page)

Returns the pm details
array

get_phpbb2_pm_text(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$pm_id)

Returns the pm text
array

get_phpbb2_ranks_details(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$ranks_start_at, int &$ranks_per_page)

Returns the rank details

Fields inherited from ImpExModule

$_restart, $_error

Fields inherited from ImpExDatabase

$_customernumber

Fields inherited from ImpExFunction

$_smilies

Private Field Summary

string

$_version

Class version
string

$_modulestring

Module string
array

$_valid_tables

Valid Database Tables

Public Method Details

phpBB2_000

public void phpBB2_000( )

 

Warning: documentation is missing.

Returns void


Private Method Details

phpbb_html

private array phpbb_html( string $text, [ boolean $truncate_smilies ] )

  HTML parser

Parameter
string $text
The string to parse
boolean $truncate_smilies = >>false<<
smilies
Returns array


pixel_size_mapping

private array pixel_size_mapping( string $size, string $text )

  Regex call back

Parameter
string $size
The origional size
string $text
The content text
Returns array


get_phpbb_members_list

private array get_phpbb_members_list( object databaseobject &$Db_object, string &$databasetype, string &$tableprefix, int &$start, int &$per_page )

  Returns the user_id => username array

Parameter
object databaseobject &$Db_object
The database object to run the query against
string &$databasetype
Table database type
string &$tableprefix
The prefix to the table name i.e. 'vb3_'
int &$start
Start point
int &$per_page
End point
Returns array


get_phpbb2_user_details

private array get_phpbb2_user_details( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$user_start_at, int &$user_per_page )

  Returns the user details array

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
int &$user_start_at
Start point
int &$user_per_page
End point
Returns array


get_list

private array get_list( object databaseobject &$Db_object, object displayobject &$database_type, object sessionobject &$table_prefix, string $type )

  Returns a type of ban list

Parameter
object databaseobject &$Db_object
The database object to run the query against
object displayobject &$database_type
The display object
object sessionobject &$table_prefix
The prefix to the table name i.e. 'vb3_'
string $type
The type of list to be returned
Returns array


do_list

private void do_list( object databaseobject &$Db_target, object displayobject &$displayobject, object sessionobject &$sessionobject, array &$list, string $type )

  Imports a list with error handeling

Parameter
object databaseobject &$Db_target
The database object to run the query against
object displayobject &$displayobject
The display object
object sessionobject &$sessionobject
The prefix to the table name i.e. 'vb3_'
array &$list
The list to be imported
string $type
The type of list being imported
Returns void


get_phpbb_styles

private array get_phpbb_styles( object databaseobject &$DB_object, string &$database_type, string &$table_prefix )

  Returns the sytles array

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
Returns array


get_phpbb2_categories_details

private array get_phpbb2_categories_details( object databaseobject &$DB_object, string &$database_type, string &$table_prefix )

  Returns the categories details array

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
Returns array


get_phpbb2_forum_details

private array get_phpbb2_forum_details( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$forum_start_at, int &$forum_per_page )

  Returns the forum details array

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
int &$forum_start_at
Start point
int &$forum_per_page
End point
Returns array


get_phpbb2_smilie_details

private array get_phpbb2_smilie_details( object databaseobject &$DB_object )

  Returns the smilie details array

Parameter
object databaseobject &$DB_object
The database object to run the query against
Returns array


get_phpbb2_posts_details

private array get_phpbb2_posts_details( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$post_start_at, int &$post_per_page )

  Returns the post details array

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
int &$post_start_at
Start point
int &$post_per_page
End point
Returns array


get_phpbb_post_text

private array get_phpbb_post_text( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$post_id )

  Returns the post details

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
int &$post_id
The phpBB post id
Returns array


get_phpbb_truncated_smilies

private array get_phpbb_truncated_smilies( object databaseobject &$DB_object, string &$database_type, string &$table_prefix )

  Returns the truncated smilies

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
Returns array


get_phpbb2_polls_details

private array get_phpbb2_polls_details( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$poll_start_at, int &$poll_per_page )

  Returns the poll details as an array

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
int &$poll_start_at
Start point
int &$poll_per_page
End point
Returns array


get_phpbb2_poll_results_details

private array get_phpbb2_poll_results_details( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$poll_id )

  Returns the post result details

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
int &$poll_id
The phpBB post id
Returns array


get_phpbb2_vote_voters

private array get_phpbb2_vote_voters( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$poll_id )

  Returns the poll voter details

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
int &$poll_id
The phpBB post id
Returns array


get_phpbb2_pm_details

private array get_phpbb2_pm_details( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$pm_start_at, int &$pm_per_page )

  Returns the pm details

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
int &$pm_start_at
Start point
int &$pm_per_page
End point
Returns array


get_phpbb2_pm_text

private array get_phpbb2_pm_text( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$pm_id )

  Returns the pm text

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
int &$pm_id
pm id
Returns array


get_phpbb2_ranks_details

private array get_phpbb2_ranks_details( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, int &$ranks_start_at, int &$ranks_per_page )

  Returns the rank details

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table database type
string &$table_prefix
The prefix to the table name i.e. 'vb3_'
int &$ranks_start_at
Start point
int &$ranks_per_page
End point
Returns array


Private Field Details

$_version

private string $_version

>>"0.0.1"<<

Class version
This will allow the checking for interoprability of class version in diffrentversions of ImpEx


$_modulestring

private string $_modulestring

>>'ImpEx phpBB-Specific API'<<

Module string
Class string for phpUnit header


$_valid_tables

private array $_valid_tables

>>array ( 'auth_access','banlist','categories','config','disallow','forum_prune','forums','groups','posts','posts_text', 'privmsgs','privmsgs_text','ranks','search_results','search_wordlist','search_wordmatch','sessions','smilies', 'themes','themes_name','topics','topics_watch','user_group','users','vote_desc','vote_results','vote_voters','words' )<<

Valid Database Tables



Packageindex Classtrees Elementlist
PHPDoc 1.0beta