Class Hook_html_site

Description

Located in /sources/hooks/modules/admin_import/html_site.php (line 44)


	
			
Method Summary
tempcode get_extra_fields ()
void import_pages (object The $db, string $table_prefix, PATH $file_base)
?array info ()
void levenshtein_strip_search ( $to_strip,  $subject,  $backwards,  $i)
array probe_db_access (string $file_base)
string _html_filter (string $file_contents, BINARY $fix_html, PATH $base_url, array $files, PATH $file_base)
Methods
get_extra_fields (line 78)

Standard import function to get extra fields to ask for when starting the import.

  • return: Extra fields
tempcode get_extra_fields ()
import_pages (line 115)

Standard import function.

void import_pages (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 51)

Standard modular info function.

  • return: Map of module info (NULL: module is disabled).
?array info ()
levenshtein_strip_search (line 693)
void levenshtein_strip_search ( $to_strip,  $subject,  $backwards,  $i)
  • $to_strip
  • $subject
  • $backwards
  • $i
probe_db_access (line 68)

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
_html_filter (line 600)

Filter HTML that has been read, to make it more compatible with ocPortal.

  • return: Filtered HTML
string _html_filter (string $file_contents, BINARY $fix_html, PATH $base_url, array $files, PATH $file_base)
  • string $file_contents: The HTML
  • BINARY $fix_html: Whether to fix XHTML errors
  • PATH $base_url: The base URL of the old site
  • array $files: A list of all files on the site
  • PATH $file_base: The base directory we are importing from

Documentation generated on Sun, 02 Jan 2011 23:15:51 +0000 by phpDocumentor 1.4.3