PHP Class 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.
显示文件 Open project: versionpress/versionpress Class Usage Examples

Public Methods

Method Description
__construct ( DbSchemaInfo $dbSchema, ActionsInfoProvider $actionsInfoProvider )
createEntityChangeInfo ( $entity, $entityName, $action, $customTags = [], $customFiles = [] )
createTrackedChangeInfo ( $scope, $action, $entityId = null, $tags = [], $files = [] )

Method Details

__construct() public method

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

createEntityChangeInfo() public method

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

createTrackedChangeInfo() public method

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