PHP Класс ForumMergePlugin, addons

Наследование: implements Gdn_IPlugin
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$TableRowThreshold Limit of rows in a table before structural changes are aborted

Открытые методы

Метод Описание
Base_GetAppSettingsMenuItems_Handler ( $Sender, $Args ) Add to the dashboard menu.
GetColumns ( $Table, $OldDatabase, $OldPrefix, $Options = [] ) : string Match up columns existing in both target and source tables.
MergeForums ( $OldDatabase, $OldPrefix, $LegacySlug ) Grab second forum's data and merge with current forum.
OldTableExists ( $TableName ) : boolean Do we have a corresponding table to merge?
Setup ( )
Structure ( )
UtilityController_MergeReset_Create ( ) Nuke every OldID column before a second merge.
UtilityController_Merge_Create ( $Sender ) Admin screen for merging forums.

Описание методов

Base_GetAppSettingsMenuItems_Handler() публичный Метод

Add to the dashboard menu.
public Base_GetAppSettingsMenuItems_Handler ( $Sender, $Args )

GetColumns() публичный Метод

Match up columns existing in both target and source tables.
public GetColumns ( $Table, $OldDatabase, $OldPrefix, $Options = [] ) : string
Результат string CSV list of columns in both copies of the table minus the primary key.

MergeForums() публичный Метод

Merge Users on email address. Keeps this forum's username/password. Merge Roles, Tags, and Categories on precise name matches.
public MergeForums ( $OldDatabase, $OldPrefix, $LegacySlug )

OldTableExists() публичный Метод

Do we have a corresponding table to merge?
public OldTableExists ( $TableName ) : boolean
$TableName
Результат boolean

Setup() публичный Метод

public Setup ( )

Structure() публичный Метод

public Structure ( )

UtilityController_MergeReset_Create() публичный Метод

Nuke every OldID column before a second merge.

UtilityController_Merge_Create() публичный Метод

Admin screen for merging forums.
public UtilityController_Merge_Create ( $Sender )

Описание свойств

$TableRowThreshold защищенное свойство

Limit of rows in a table before structural changes are aborted
protected $TableRowThreshold