AbstractRecordWriterStrategy

Implements \VuFindHarvest\RecordWriterStrategy\RecordWriterStrategyInterface

Abstract record writer strategy (shared base for standard vs. combined modes of saving records).

category

VuFind

package

Harvest_Tools

author

Demian Katz demian.katz@villanova.edu

license

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

link

Wiki

Methods

Constructor

__construct(string $basePath) 

Arguments

$basePath

string

Target directory for harvested files

Get base path for writes.

getBasePath() : string

Response

string

Get the filename for a specific record ID.

getFilename(string $id, string $ext) : string

Arguments

$id

string

ID of record to save.

$ext

string

File extension to use.

Response

string

Full path + filename.

Create a tracking file to record the deletion of a record.

saveDeletedRecords(string|array $ids) : void

Arguments

$ids

string|array

ID(s) of deleted record(s).

Save a record to disk.

saveFile(string $id, string $xml) : void

Arguments

$id

string

Record ID to use for filename generation.

$xml

string

XML to save.

Properties

Directory for storing harvested files

basePath : string
var

Type(s)

string