Class Hook_aef

Description
Method Summary
ID_TEXT convert_topic_emoticon (integer $iconid)
array data_to_disk (string $data, string $filename, ID_TEXT $sections, PATH $file_base)
string fix_links (string $post, object The $db, string $table_prefix, PATH $file_base)
void import_authors (object The $db, string $table_prefix, PATH $old_base_dir)
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_news_and_categories (object The $db, string $table_prefix, PATH $old_base_dir)
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_post (array $m)
string _fix_links_callback_topic (array $m)
Methods
convert_topic_emoticon (line 947)

Convert a AEF 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 732)

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

  • return: Pair: The URL, the thumb url
array data_to_disk (string $data, string $filename, ID_TEXT $sections, PATH $file_base)
  • string $data: The file data
  • string $filename: The optimal filename
  • ID_TEXT $sections: The upload type (e.g. ocf_photos)
  • PATH $file_base: The base directory we are importing from
fix_links (line 709)

Convert AEF 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, PATH $file_base)
  • 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
  • PATH $file_base: The base directory we are importing from
import_authors (line 315)

Standard import function.

void import_authors (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_config (line 117)

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

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_news_and_categories (line 337)

Standard import function.

void import_news_and_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_categories (line 489)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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:08:20 +0000 by phpDocumentor 1.4.3