Method | Description | |
---|---|---|
__construct ( Inpsyde\MultilingualPress\Database\TableInstaller $table_installer, Inpsyde\MultilingualPress\Database\Table $content_relations_table, Inpsyde\MultilingualPress\Database\Table $languages_table, Inpsyde\MultilingualPress\Database\Table $site_relations_table, Inpsyde\MultilingualPress\API\SiteRelations $site_relations ) | Constructor. Sets up the properties. | |
update ( Inpsyde\MultilingualPress\Common\Type\VersionNumber $installed_version ) : void | Updates any installed plugin data to the current version. |
Method | Description | |
---|---|---|
import_active_languages ( ) : void | Imports all active languages from the according network option into the languages table. | |
import_site_relations ( ) : void | Moves site relations from deprecated site options to the new custom network table. | |
update_type_column ( ) : void | Updates invalid type field entries in the content relations table. |
public __construct ( Inpsyde\MultilingualPress\Database\TableInstaller $table_installer, Inpsyde\MultilingualPress\Database\Table $content_relations_table, Inpsyde\MultilingualPress\Database\Table $languages_table, Inpsyde\MultilingualPress\Database\Table $site_relations_table, Inpsyde\MultilingualPress\API\SiteRelations $site_relations ) | ||
$table_installer | Inpsyde\MultilingualPress\Database\TableInstaller | Table installer object. |
$content_relations_table | Inpsyde\MultilingualPress\Database\Table | Content relations table object. |
$languages_table | Inpsyde\MultilingualPress\Database\Table | Languages table object. |
$site_relations_table | Inpsyde\MultilingualPress\Database\Table | Site relations table object. |
$site_relations | Inpsyde\MultilingualPress\API\SiteRelations | Site relations API. |