PHP 클래스 Mpociot\Versionable\Version

상속: extends Illuminate\Database\Eloquent\Model
파일 보기 프로젝트 열기: mpociot/versionable 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$table string

보호된 프로퍼티들

프로퍼티 타입 설명
$primaryKey string

공개 메소드들

메소드 설명
diff ( Version $againstVersion = null ) : array Diff the attributes of this version model against another version.
getModel ( ) : Model Return the versioned model
getResponsibleUserAttribute ( ) : mixed Return the user responsible for this version
revert ( ) : Model Revert to the stored model version make it the current version
versionable ( ) : Illuminate\Database\Eloquent\Relations\MorphTo Sets up the relation

메소드 상세

diff() 공개 메소드

If no version is provided, it will be diffed against the current version.
public diff ( Version $againstVersion = null ) : array
$againstVersion Version
리턴 array

getModel() 공개 메소드

Return the versioned model
public getModel ( ) : Model
리턴 Illuminate\Database\Eloquent\Model

getResponsibleUserAttribute() 공개 메소드

Return the user responsible for this version

revert() 공개 메소드

Revert to the stored model version make it the current version
public revert ( ) : Model
리턴 Illuminate\Database\Eloquent\Model

versionable() 공개 메소드

Sets up the relation
public versionable ( ) : Illuminate\Database\Eloquent\Relations\MorphTo
리턴 Illuminate\Database\Eloquent\Relations\MorphTo

프로퍼티 상세

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

protected string $primaryKey
리턴 string

$table 공개적으로 프로퍼티

public string $table
리턴 string