PHP 클래스 ForumMergePlugin, addons

상속: implements Gdn_IPlugin
파일 보기 프로젝트 열기: vanilla/addons

보호된 프로퍼티들

프로퍼티 타입 설명
$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