bbWP2UTF8 is a class/plugin which strives to convert wordpress / wordpress mu database content in whatever character set to utf8
Located in /bbWP2UTF8.php (line 37)
reference to the wordpress wpdb database object
Constructor (backwards compatible with php4..) Calls the _setClassVars function to set the class variables and calls the _setWPHooks in order to set the appropriate hooks.
Sets a database's character set to utf8
Sets a table's character set to utf8
Check if a column's character set is binary or not (wraps _getColumnCharacterSet in it..)
Checks if we're dealing with Wordpress MU or not by checking the existance of wpmu-settings.php
Retrieve the current database's character set
Builds the interface and handles the different steps of the conversion.
Basically the core of this plugin Called by the add_submenu_page hook.
Sink function for the 'admin_menu' hook
Makes it easy to add optional pages as a sub-option of the top level menu items
Converts a given column's type of a given table to its binary counterpart according to the list below:
CHAR -> BINARY VARCHAR -> VARBINARY TINYTEXT -> TINYBLOB TEXT -> BLOB MEDIUMTEXT -> MEDIUMBLOB LONGTEXT -> LONGBLOB
Columns with the type ENUM and SET will be set to character set binary
Creates a list with all available tables
Converts a given column's binary type of a given table to its previous non-binary type according to the list below:
BINARY -> CHAR VARBINARY -> VARCHAR TINYBLOB -> TINYTEXT BLOB -> TEXT MEDIUMBLOB -> MEDIUMTEXT LONGBLOB -> LONGTEXT
Columns with the type ENUM and SET will be set to character set utf8
Retrieves all tables from database defined by DB_NAME in wp-config.php
Retrieves a column's character set
Retrieves a table's collation
Retrieves all columns from a given table
Expects a column object and returns the column type and extra info in an array
Documentation generated on Tue, 01 Jul 2008 16:28:16 +0200 by phpDocumentor 1.4.2