PHP 클래스 RainLab\Builder\Classes\MigrationModel

저자: Alexey Bobkov, Samuel Georges
상속: extends RainLab\Builder\Classes\BaseModel
파일 보기 프로젝트 열기: rainlab/builder-plugin 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$code The migration PHP code string
$description The migration description
$originalScriptFileName
$scriptFileName The migration script file name. Currently only migrations with a single (or none) script file are supported by Builder editors.
$version Migration version string

보호된 프로퍼티들

프로퍼티 타입 설명
$fillable
$originalVersion
$validationRules

공개 메소드들

메소드 설명
apply ( )
deleteModel ( )
getNextVersion ( )
initVersion ( $versionType )
isApplied ( )
load ( $versionNumber )
makeScriptFileNameUnique ( )
rollback ( )
save ( $executeOnSave = true ) Saves the migration and applies all outstanding migrations for the plugin.
validate ( )

보호된 메소드들

메소드 설명
assignFileName ( )
deleteVersion ( )
getOriginalFileContents ( )
getPluginUpdatesPath ( $fileName = null )
getPluginVersionInformation ( )
insertOrUpdateVersion ( )
loadScriptFile ( )
removeScriptFile ( )
rollbackSaving ( $originalVersionData, $originalScriptFileContents )
rollbackScriptFile ( $fileContents )
rollbackVersionFile ( $fileData )
saveScriptFile ( )

메소드 상세

apply() 공개 메소드

public apply ( )

assignFileName() 보호된 메소드

protected assignFileName ( )

deleteModel() 공개 메소드

public deleteModel ( )

deleteVersion() 보호된 메소드

protected deleteVersion ( )

getNextVersion() 공개 메소드

public getNextVersion ( )

getOriginalFileContents() 보호된 메소드

protected getOriginalFileContents ( )

getPluginUpdatesPath() 보호된 메소드

protected getPluginUpdatesPath ( $fileName = null )

getPluginVersionInformation() 보호된 메소드

initVersion() 공개 메소드

public initVersion ( $versionType )

insertOrUpdateVersion() 보호된 메소드

protected insertOrUpdateVersion ( )

isApplied() 공개 메소드

public isApplied ( )

load() 공개 메소드

public load ( $versionNumber )

loadScriptFile() 보호된 메소드

protected loadScriptFile ( )

makeScriptFileNameUnique() 공개 메소드

removeScriptFile() 보호된 메소드

protected removeScriptFile ( )

rollback() 공개 메소드

public rollback ( )

rollbackSaving() 보호된 메소드

protected rollbackSaving ( $originalVersionData, $originalScriptFileContents )

rollbackScriptFile() 보호된 메소드

protected rollbackScriptFile ( $fileContents )

rollbackVersionFile() 보호된 메소드

protected rollbackVersionFile ( $fileData )

save() 공개 메소드

Saves the migration and applies all outstanding migrations for the plugin.
public save ( $executeOnSave = true )

saveScriptFile() 보호된 메소드

protected saveScriptFile ( )

validate() 공개 메소드

public validate ( )

프로퍼티 상세

$code 공개적으로 프로퍼티

The migration PHP code string
public $code

$description 공개적으로 프로퍼티

The migration description
public $description

$fillable 보호되어 있는 정적으로 프로퍼티

protected static $fillable

$originalScriptFileName 공개적으로 프로퍼티

public $originalScriptFileName

$originalVersion 보호되어 있는 프로퍼티

protected $originalVersion

$scriptFileName 공개적으로 프로퍼티

The migration script file name. Currently only migrations with a single (or none) script file are supported by Builder editors.
public $scriptFileName

$validationRules 보호되어 있는 프로퍼티

protected $validationRules

$version 공개적으로 프로퍼티

Migration version string
public $version