PHP Интерфейс VersionPress\ChangeInfos\ChangeInfo

ChangeInfo is first created from a hook that observes some action (see versionpress.php, or for {@link VersionPress\ChangeInfos\EntityChangeInfo}s the initiator is usually some {@link VersionPress\Storages\Storage}). The ChangeInfo is then persisted to a commit message by {@link Committer} and later reconstructed from it again when the main VersionPress table is being displayed (see admin/index.php and {@link VersionPress\ChangeInfos\ChangeInfoFactory}). There are two main classes of ChangeInfo objects: tracked and untracked ones, and the tracked change infos further have many specific types to represent various actions (for instance, post changes display different messages than comment messages). More docs on it in {@link VersionPress\ChangeInfos\TrackedChangeInfo}.
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
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.
getCommitMessage ( ) : CommitMessage Creates a commit message from this ChangeInfo. Used by Committer.
getPriority ( )

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

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

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

Creates a commit message from this ChangeInfo. Used by Committer.
См. также: Committer::commit()
public getCommitMessage ( ) : CommitMessage
Результат VersionPress\Git\CommitMessage

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

public getPriority ( )