Packageindex Classtrees Elementlist

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

eve_000

ImpExFunction
   |
  +-- ImpExDatabase
     |
    +-- ImpExModule
       |
      +-- eve_000

eve_000

 

private class eve_000 extends ImpExModule

eve_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

eve_000()

Constructor

Private Method Summary

array

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

Returns the userid to user name array
array

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

Returns the userid to user details array
void

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

Imports a list with error handeling
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_eve_styles(object databaseobject &$DB_object, string &$database_type, string &$table_prefix)

Returns the style id to the style array
array

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

Returns the forum id to the forum details array
array

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

Returns the importedstyleid keyed to the vb styleid
string

get_eve_parent_forum_id(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, string &$import_forum_id)

Returns the parent forum id
array

get_eve_forum_id(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, string &$forum_get)

Returns the importedstyleid keyed to the vb styleid
array

get_eve_thread_details(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, string &$forum_id)

Returns the thread details for an even thread
array

get_eve_message_details(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, string &$message_id)

Returns an eve message
int

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

Returns the number of eve forums
array

get_eve_posts_details(object databaseobject $DB_object, string $database_type, string $table_prefix, string $thread_id)

Returns the post for a given eve thread
array

get_eve_thread_ids(object databaseobject $DB_object, string $database_type, string $table_prefix, int $forum_start_at, int $forum_pre_page)

Returns the thread ids
array

get_thread_number(object databaseobject $DB_object, string $database_type, string $table_prefix)

Returns number of threads
string

eve_html(string $html)

Parses eve html
array

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

Returns an array of eve polls
array

get_eve_poll_question_text(object databaseobject &$DB_object, string &$database_type, string &$table_prefix, string &$message_id)

Returns the question text of an eve poll
array

get_eve_pm_ids(object databaseobject $Db_object, string $database_type, string $table_prefix, string $pm_start_at, string $pm_per_page)

Returns the reverse topic id to the topic_message_id from the 'Private Messaging Forum'
array

get_eve_pm_text(object databaseobject $DB_object, string $database_type, string $table_prefix, string $pm_id)

Returns the text of an eve message

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

eve_000

public void eve_000( )

  Constructor

Returns void


Private Method Details

get_eve_members_list

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

  Returns the userid to user name 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_eve_user_details

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

  Returns the userid to user details array

Parameter
object databaseobject &$DB_object
The database object to run the query against
string &$database_type
Table prefix
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 void get_list( object databaseobject &$Db_object, object displayobject &$database_type, object sessionobject &$table_prefix, string $type, [ string $user_ids_array ] )

  Imports a list with error handeling

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 being imported
string $user_ids_array = >>null<<
The user ids to match up with the IP's etc
Returns void


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_eve_styles

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

  Returns the style id to the style 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_eve_forum_details

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

  Returns the forum id to 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_imported_eve_style_ids

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

  Returns the importedstyleid keyed to the vb styleid

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_eve_parent_forum_id

private string get_eve_parent_forum_id( object databaseobject &$DB_object, string &$database_type, string &$table_prefix, string &$import_forum_id )

  Returns the parent forum id

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_'
string &$import_forum_id
The import forumid
Returns string


get_eve_forum_id

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

  Returns the importedstyleid keyed to the vb styleid

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_'
string &$forum_get
The index (number) of the eve forum to get
Returns array


get_eve_thread_details

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

  Returns the thread details for an even thread

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_'
string &$forum_id
The forum id to return
Returns array


get_eve_message_details

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

  Returns an eve message

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_'
string &$message_id
The message id to return
Returns array


get_forum_number

private int get_forum_number( object databaseobject &$DB_object, string &$database_type, string &$table_prefix )

  Returns the number of eve forums

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 int


get_eve_posts_details

private array get_eve_posts_details( object databaseobject $DB_object, string $database_type, string $table_prefix, string $thread_id )

  Returns the post for a given eve thread

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_'
string $thread_id
The topic_message_oid to return (i.e. a thread)
Returns array


get_eve_thread_ids

private array get_eve_thread_ids( object databaseobject $DB_object, string $database_type, string $table_prefix, int $forum_start_at, int $forum_pre_page )

  Returns the thread ids

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_pre_page
End point
Returns array


get_thread_number

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

  Returns number of threads

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


eve_html

private string eve_html( string $html )

  Parses eve html

Parameter
string $html
The html to parse
Returns string


get_eve_polls_details

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

  Returns an array of eve polls

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_eve_poll_question_text

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

  Returns the question text of an eve poll

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_'
string &$message_id
Start point
Returns array


get_eve_pm_ids

private array get_eve_pm_ids( object databaseobject $Db_object, string $database_type, string $table_prefix, string $pm_start_at, string $pm_per_page )

  Returns the reverse topic id to the topic_message_id from the 'Private Messaging Forum'

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_'
string $pm_start_at
Start point
string $pm_per_page
End point
Returns array


get_eve_pm_text

private array get_eve_pm_text( object databaseobject $DB_object, string $database_type, string $table_prefix, string $pm_id )

  Returns the text of an eve message

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_'
string $pm_id
Start 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 Eve-Specific API'<<

Module string
Class string for phpUnit header


$_valid_tables

private array $_valid_tables

>>array ( 'ACTIVITY_LOG', 'ACTIVITY_TYPES', 'APPLICATION_TEXT', 'AUTO_LINKS', 'AVATARS', 'BANNED_EMAILS', 'BANNED_IPS', 'BOARDS', 'CACHE', 'CHARSETS', 'CONTENT_ISLANDS', 'CONTENT_SUBSCRIPTIONS', 'CURRENT_DB_VERSION', 'C_CATEGORIES', 'C_ITEMS', 'C_REVISIONS', 'C_REVISION_LOGS', 'C_STAGING', 'C_TAGS', 'C_TAG_TO_REV_JOIN', 'DATABASE_INFO', 'DATABASE_LOCKS', 'D_FORUM_POST_COUNTS', 'D_FORUM_POST_TIMES', 'D_FORUM_TOPIC_COUNTS', 'D_TOPIC_POST_COUNTS', 'D_TOPIC_POST_TIMES', 'D_USER_POST_COUNTS', 'D_USER_TYPES', 'FORUMS', 'FORUM_STATISTICS', 'GROUPS', 'GROUP_RIGHTS', 'GROUP_TOPICS', 'GROUP_TOPIC_EVENTS', 'GROUP_TOPIC_PARTICIPANTS', 'IGNORED_USERS', 'IP_ALBUMS', 'IP_ALBUM_IMAGES', 'IP_ARCHIVED_TOPICS', 'IP_BANNED_USERS', 'IP_CHAT_TOPICS', 'IP_CHAT_TOPIC_MESSAGES', 'IP_CHAT_TOPIC_UNMOD_QUEUE', 'IP_CLONE_SOURCE_AND_DEST', 'IP_CONTENT_SUBSCRIPTIONS', 'IP_CUSTOM_CODES', 'IP_CUSTOM_PROFILE_FIELDS', 'IP_DISPLAY_OPTIONS', 'IP_DISPLAY_RESOURCES', 'IP_DISPLAY_RES_ASSOCIATIONS', 'IP_EVENT_LOG', 'IP_GROUPS', 'IP_GROUP_USERS', 'IP_HIGHLIGHTED_TOPICS', 'IP_IGNORED_USERS', 'IP_IM_ACTIVE_MENUS', 'IP_IM_PARTICIPANTS', 'IP_INDEXED_WORDS', 'IP_KARMA_LEVELS', 'IP_MESSAGE_ALERTS', 'IP_PERMISSIONS', 'IP_PREMIUM_GROUP_SETTINGS', 'IP_PROFILES', 'IP_RESOURCES', 'IP_RIGHTS', 'IP_RW_LOCKS', 'IP_SESSION_ACTIVITY', 'IP_SETTINGS', 'IP_SITE_OC_SETTINGS', 'IP_SS_IMAGE_DIMENSIONS', 'IP_STATISTICS', 'IP_STREET_ADDRESSES', 'IP_STYLE_SETS', 'IP_STYLE_SETTINGS', 'IP_TEMPLATE_FILES', 'IP_TEMPLATE_PAGE_TYPES', 'IP_TEMPLATE_SETS', 'IP_TEMPLATE_SET_USAGE', 'IP_TEMPLATE_SUPPORT_INFO', 'IP_TOPICS', 'IP_UNCONFIRMED_USERS', 'IP_USERS', 'IP_USER_CONTACT_INFO', 'IP_USER_FAVORITES', 'IP_WORDLETS', 'IP_WORDLET_SETS', 'LANGS', 'MESSAGES', 'POLLS', 'RIGHTS', 'RIGHT_SECURITY_LEVELS', 'SESSION_ACTIVITY_SETTINGS', 'SITES', 'SITE_EVENTS', 'SITE_REQ_TYPE_STATISTICS', 'SITE_STATISTICS', 'SITE_USER_TYPES', 'STYLES', 'STYLES2', 'STYLES3', 'STYLE_SHEETS', 'STYLE_SHEET_TYPES', 'TEMP_GROUPS', 'TEMP_USER_GROUPS', 'TOPIC_INFO', 'UNMOD_MESSAGE_QUEUE', 'UPLOADS', 'URL_LOOKUP', 'USERS', 'USER_CONTACTS', 'USER_GROUPS', 'USER_INFO', 'USER_INTEREST_LOG', 'USER_STATISTICS', 'XFACE_OPTIONS_SETS', 'XFACE_OPTIONS_SET_ASSOC', 'XFACE_OPTIONS_SET_TYPES', 'XSL_SCHEMES' )<<

Valid Database Tables



Packageindex Classtrees Elementlist
PHPDoc 1.0beta