PHP 클래스 VersionPress\ChangeInfos\TrackedChangeInfo

VP-Action: post/edit/VPID123 Specific subclasses optionally add their own tags.
또한 보기: CommitMessage::getVersionPressTags()
또한 보기: UntrackedChangeInfo Changes created outside of VersionPress.
상속: implements VersionPress\ChangeInfos\ChangeInfo
파일 보기 프로젝트 열기: versionpress/versionpress 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $scope, $actionsInfo, $action, $id, $customTags = [], $customFiles = [] )
getAction ( ) : string The action done on the object type, for instance "install" or "activate" if the object was a plugin.
getChangeDescription ( ) : string Text displayed in the main VersionPress table (see admin/index.php). Also used to construct commit message subject (first line) when the commit is first physically created.
getChangedFiles ( ) : array Reports changes in files that relate to this ChangeInfo. Used by {@see Committer::stageRelatedFiles()}.
getCommitMessage ( )
getCustomTags ( ) : array Used to construct a commit message body, subclasses provide an array of VP tags using this method. If they don't need custom tags, they return an empty array.
getId ( )
getPriority ( )
getScope ( ) : string Object type, the first part of the VP-Action tag value.

보호된 메소드들

메소드 설명
getActionTagValue ( ) : string Used to construct a commit message body, subclasses provide a string for the VP-Action tag value using this method.

비공개 메소드들

메소드 설명
getCommitMessageBody ( ) : string Constructs commit message body, which is typically a couple of lines of VP tags.

메소드 상세

__construct() 공개 메소드

public __construct ( $scope, $actionsInfo, $action, $id, $customTags = [], $customFiles = [] )

getAction() 공개 메소드

Action is always part of VP-Action tag as the second segment.
public getAction ( ) : string
리턴 string

getActionTagValue() 보호된 메소드

Used to construct a commit message body, subclasses provide a string for the VP-Action tag value using this method.
또한 보기: getCommitMessageBody()
protected getActionTagValue ( ) : string
리턴 string

getChangeDescription() 공개 메소드

Text displayed in the main VersionPress table (see admin/index.php). Also used to construct commit message subject (first line) when the commit is first physically created.
public getChangeDescription ( ) : string
리턴 string

getChangedFiles() 공개 메소드

Path specifications are either pointers to storage files based on entity name and VPID or a concrete path (optionally with wildcards). An example: [ ['type' => 'storage-file', 'entity' => 'post', 'id' => VPID, 'parent-id' => null], ['type' => 'storage-file', 'entity' => 'usermeta', 'id' => VPID, 'parent-id' => user-VPID], ['type' => 'all-storage-files', 'entity' => 'option'], ['type' => 'path', 'path' => '/var/www/wp/example.txt'], ['type' => 'path', 'path' => '/var/www/wp/folder/*'] ]
public getChangedFiles ( ) : array
리턴 array

getCommitMessage() 공개 메소드

public getCommitMessage ( )

getCustomTags() 공개 메소드

Used to construct a commit message body, subclasses provide an array of VP tags using this method. If they don't need custom tags, they return an empty array.
또한 보기: getCommitMessageBody()
public getCustomTags ( ) : array
리턴 array

getId() 공개 메소드

public getId ( )

getPriority() 공개 메소드

public getPriority ( )

getScope() 공개 메소드

For example, when objectType is "post", the VP-Action tag will be something like "post/edit/VPID123".
public getScope ( ) : string
리턴 string