PHP 클래스 VersionPress\ChangeInfos\ChangeInfoFactory

The main reason for introducing this class was to remove the dependency of storages on DbSchemaInfo and ActionsInfoProvider which are on a different level of abstraction.
파일 보기 프로젝트 열기: versionpress/versionpress 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( DbSchemaInfo $dbSchema, ActionsInfoProvider $actionsInfoProvider )
createEntityChangeInfo ( $entity, $entityName, $action, $customTags = [], $customFiles = [] )
createTrackedChangeInfo ( $scope, $action, $entityId = null, $tags = [], $files = [] )

메소드 상세

__construct() 공개 메소드

public __construct ( DbSchemaInfo $dbSchema, ActionsInfoProvider $actionsInfoProvider )
$dbSchema VersionPress\Database\DbSchemaInfo
$actionsInfoProvider VersionPress\Actions\ActionsInfoProvider

createEntityChangeInfo() 공개 메소드

public createEntityChangeInfo ( $entity, $entityName, $action, $customTags = [], $customFiles = [] )

createTrackedChangeInfo() 공개 메소드

public createTrackedChangeInfo ( $scope, $action, $entityId = null, $tags = [], $files = [] )