VuFind API Documentation

RecordIdUpdater
in package

Class for updating the database when a record ID changes.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Main Site

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

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

Return values
void

Search results