Class Hook_phpbb2

Description
Method Summary
string fix_links (string $post, object The $db, string $table_prefix)
void import_config (object The $db, string $table_prefix, PATH $file_base)
void import_ip_bans (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_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_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_topic (array $m)
IP _un_phpbb_ip (string $ip)
Methods
fix_links (line 641)

Convert phpBB 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_config (line 115)

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_ip_bans (line 395)

Standard import function.

void import_ip_bans (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 431)

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_forums (line 460)

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 176)

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 218)

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 316)

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 801)

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 740)

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 550)

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 667)

Standard import function. Note that this is designed for a very popular phpBB mod, and will exit silently if the mod hasn't been installed.

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 520)

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 871)

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_wordfilter (line 906)

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 90)

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 617)

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 628)

Substitution callback for 'fix_links'.

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

Substitution callback for 'fix_links'.

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

Convert an IP address from phpBB hexadecimal string format.

  • return: The normal IP address
IP _un_phpbb_ip (string $ip)
  • string $ip: The phpBB IP address

Documentation generated on Sun, 02 Jan 2011 23:21:00 +0000 by phpDocumentor 1.4.3