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.
Afficher le fichier Open project: versionpress/versionpress Class Usage Examples

Méthodes publiques

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

Method Details

__construct() public méthode

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

createEntityChangeInfo() public méthode

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

createTrackedChangeInfo() public méthode

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