RecordIdUpdater
in package
Class for updating the database when a record ID changes.
Tags
Table of Contents
- $commentsService : CommentsServiceInterface
- $resourceService : ResourceServiceInterface|TransactionInterface
- $resourceTagsService : ResourceTagsServiceInterface
- $userResourceService : UserResourceServiceInterface
- __construct() : mixed
- Constructor
- updateRecordId() : void
- Update the database to reflect a changed record identifier.
Properties
$commentsService
protected
CommentsServiceInterface
$commentsService
$resourceService
protected
ResourceServiceInterface|TransactionInterface
$resourceService
$resourceTagsService
protected
ResourceTagsServiceInterface
$resourceTagsService
$userResourceService
protected
UserResourceServiceInterface
$userResourceService
Methods
__construct()
Constructor
public
__construct(ResourceServiceInterface|TransactionInterface $resourceService, CommentsServiceInterface $commentsService, UserResourceServiceInterface $userResourceService, ResourceTagsServiceInterface $resourceTagsService) : mixed
Parameters
- $resourceService : ResourceServiceInterface|TransactionInterface
-
Resource database service
- $commentsService : CommentsServiceInterface
-
Comments database service
- $userResourceService : UserResourceServiceInterface
-
User/Resource database service
- $resourceTagsService : ResourceTagsServiceInterface
-
Resource/Tags database service
Return values
mixed —updateRecordId()
Update the database to reflect a changed record identifier.
public
updateRecordId(string $oldId, string $newId[, string $source = DEFAULT_SEARCH_BACKEND ]) : void
Parameters
- $oldId : string
-
Original record ID
- $newId : string
-
Revised record ID
- $source : string = DEFAULT_SEARCH_BACKEND
-
Record source