Class Hook_vb3

Description
Method Summary
ID_TEXT convert_topic_emoticon (integer $iconid)
array data_to_disk (string $data, string $filename, ID_TEXT $sections, [boolean $thumbnail = true], [string $thumbnail_data = ''], [boolean $obfuscate = false])
string fix_links (string $post, object The $db, string $table_prefix)
void import_calendar (object The $db, string $table_prefix, PATH $file_base)
void import_config (object The $db, string $table_prefix, PATH $file_base)
void import_custom_comcode (object The $db, string $table_prefix, PATH $file_base)
void import_logs (object The $db, string $table_prefix, PATH $file_base)
void import_ocf_categories (object The $db, string $table_prefix, PATH $old_base_dir)
void import_ocf_custom_profile_fields (object The $db, string $table_prefix, PATH $file_base)
void import_ocf_forums (object The $db, string $table_prefix, PATH $old_base_dir)
void import_ocf_groups (object The $db, string $table_prefix, PATH $file_base)
void import_ocf_members (object The $db, string $table_prefix, PATH $file_base)
void import_ocf_member_files (object The $db, string $table_prefix, PATH $file_base)
void import_ocf_personal_topics (object The $db, string $table_prefix, PATH $old_base_dir)
void import_ocf_polls_and_votes (object The $db, string $table_prefix, PATH $file_base)
void import_ocf_posts (object The $db, string $table_prefix, PATH $file_base)
void import_ocf_post_files (object The $db, string $table_prefix, PATH $file_base)
void import_ocf_topics (object The $db, string $table_prefix, PATH $file_base)
void import_ocf_tracking (object The $db, string $table_prefix, PATH $file_base)
void import_points_gifts_and_charges (object The $db, string $table_prefix, PATH $file_base)
void import_wordfilter (object The $db, string $table_prefix, PATH $file_base)
?array info ()
array probe_db_access (string $file_base)
string _fix_links_callback_forum (array $m)
string _fix_links_callback_member (array $m)
string _fix_links_callback_post (array $m)
string _fix_links_callback_topic (array $m)
Methods
convert_topic_emoticon (line 1110)

Convert a VB topic icon code into a standard ocPortal theme image code.

  • return: ocPortal code
ID_TEXT convert_topic_emoticon (integer $iconid)
  • integer $iconid: VB code
data_to_disk (line 869)

Convert a VB database file to an ocPortal uploaded file (stored on disk).

  • return: A tuple containing the URL, and if requested, the thumbnail
array data_to_disk (string $data, string $filename, ID_TEXT $sections, [boolean $thumbnail = true], [string $thumbnail_data = ''], [boolean $obfuscate = false])
  • string $data: The file data
  • string $filename: The optimal filename
  • ID_TEXT $sections: The upload type (e.g. ocf_photos)
  • boolean $thumbnail: Whether to create a thumbnail for it
  • string $thumbnail_data: Thumbnail data (blank: no thumbnail / generate one if asked)
  • boolean $obfuscate: Whether to obfuscate the file type
fix_links (line 789)

Convert vBulletin URLs pasted in text fields into ocPortal ones.

  • return: The new text field text
string fix_links (string $post, object The $db, string $table_prefix)
  • string $post: The text field text (e.g. a post)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
import_calendar (line 977)

Standard import function.

void import_calendar (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_config (line 132)

Standard import function.

void import_config (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_custom_comcode (line 1141)

Standard import function.

void import_custom_comcode (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_logs (line 1228)

Standard import function.

void import_logs (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_ocf_categories (line 517)

Standard import function.

void import_ocf_categories (object The $db, string $table_prefix, PATH $old_base_dir)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $old_base_dir: The base directory we are importing from
import_ocf_custom_profile_fields (line 476)

Standard import function.

void import_ocf_custom_profile_fields (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_ocf_forums (line 546)

Standard import function.

void import_ocf_forums (object The $db, string $table_prefix, PATH $old_base_dir)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $old_base_dir: The base directory we are importing from
import_ocf_groups (line 212)

Standard import function.

void import_ocf_groups (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_ocf_members (line 301)

Standard import function.

void import_ocf_members (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_ocf_member_files (line 410)

Standard import function.

void import_ocf_member_files (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_ocf_personal_topics (line 1041)

Standard import function.

void import_ocf_personal_topics (object The $db, string $table_prefix, PATH $old_base_dir)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $old_base_dir: The base directory we are importing from
import_ocf_polls_and_votes (line 931)

Standard import function.

void import_ocf_polls_and_votes (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_ocf_posts (line 681)

Standard import function.

void import_ocf_posts (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_ocf_post_files (line 812)

Standard import function.

void import_ocf_post_files (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_ocf_topics (line 615)

Standard import function.

void import_ocf_topics (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_ocf_tracking (line 1180)

Standard import function.

void import_ocf_tracking (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_points_gifts_and_charges (line 1280)

Standard import function.

void import_points_gifts_and_charges (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
import_wordfilter (line 1306)

Standard import function.

void import_wordfilter (object The $db, string $table_prefix, PATH $file_base)
  • object The $db: DB connection to import from
  • string $table_prefix: The table prefix the target prefix is using
  • PATH $file_base: The base directory we are importing from
info (line 44)

Standard modular info function.

  • return: Map of module info (NULL: module is disabled).
?array info ()
probe_db_access (line 97)

Probe a file path for DB access details.

  • return: A quartet of the details (db_name, db_user, db_pass, table_prefix)
array probe_db_access (string $file_base)
  • string $file_base: The probe path
_fix_links_callback_forum (line 765)

Substitution callback for 'fix_links'.

  • return: The substitution string
string _fix_links_callback_forum (array $m)
  • array $m: The match
_fix_links_callback_member (line 776)

Substitution callback for 'fix_links'.

  • return: The substitution string
string _fix_links_callback_member (array $m)
  • array $m: The match
_fix_links_callback_post (line 754)

Substitution callback for 'fix_links'.

  • return: The substitution string
string _fix_links_callback_post (array $m)
  • array $m: The match
_fix_links_callback_topic (line 743)

Substitution callback for 'fix_links'.

  • return: The substitution string
string _fix_links_callback_topic (array $m)
  • array $m: The match

Documentation generated on Sun, 02 Jan 2011 23:28:17 +0000 by phpDocumentor 1.4.3