PHP 클래스 VersionPress\Git\Reverter

파일 보기 프로젝트 열기: versionpress/versionpress 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( SynchronizationProcess $synchronizationProcess, Database $database, Committer $committer, GitRepository $repository, DbSchemaInfo $dbSchemaInfo, StorageFactory $storageFactory, CommitMessageParser $commitMessageParser )
canRevert ( )
rollback ( $commits )
undo ( $commits )

비공개 메소드들

메소드 설명
checkEntityReferences ( $entityName, $entityId, $parentId ) : boolean Returns true if there is no reference constraint violation for given entity.
checkReferencesForRevertedCommit ( Commit $revertedCommit )
clearOrphanedPosts ( ) Deletes orphaned files older than 1 minute (due to postponed commits, that has not been used)
entityExists ( $referencedEntityName, $referencedEntityId, $maybeParentId ) : boolean For standard entities just checks the storage.
existsSomeEntityWithReferenceTo ( $entityName, $entityId ) : boolean Returns true if there is any entity with reference to the passed one.
getAffectedPosts ( $modifiedFiles )
getAllVpIdsFromModifiedFiles ( $modifiedFiles )
revert ( $commits, $method )
revertOneCommit ( $commitHash )
revertToCommit ( $commitHash )
updateChangeDateForPosts ( $vpIds )

메소드 상세

__construct() 공개 메소드

public __construct ( SynchronizationProcess $synchronizationProcess, Database $database, Committer $committer, GitRepository $repository, DbSchemaInfo $dbSchemaInfo, StorageFactory $storageFactory, CommitMessageParser $commitMessageParser )
$synchronizationProcess VersionPress\Synchronizers\SynchronizationProcess
$database VersionPress\Database\Database
$committer Committer
$repository GitRepository
$dbSchemaInfo VersionPress\Database\DbSchemaInfo
$storageFactory VersionPress\Storages\StorageFactory
$commitMessageParser VersionPress\ChangeInfos\CommitMessageParser

canRevert() 공개 메소드

public canRevert ( )

rollback() 공개 메소드

public rollback ( $commits )

undo() 공개 메소드

public undo ( $commits )