SerializationFileInterface
in
MARC serialization file interface.
Tags
Table of Contents
- canParseCollectionFile() : bool
- Check if the serialization class can parse the given MARC collection file
- getNextRecord() : string
- Get next record from the file or an empty string on EOF
- openCollectionFile() : void
- Open a collection file
- rewind() : void
- Rewind the collection file
- setMessageCallback() : void
- Set message callback
Methods
canParseCollectionFile()
Check if the serialization class can parse the given MARC collection file
public
static canParseCollectionFile(string $file) : bool
Parameters
- $file : string
-
File name
Return values
bool —getNextRecord()
Get next record from the file or an empty string on EOF
public
getNextRecord() : string
Tags
Return values
string —openCollectionFile()
Open a collection file
public
openCollectionFile(string $file) : void
Parameters
- $file : string
-
File name
Tags
Return values
void —rewind()
Rewind the collection file
public
rewind() : void
Tags
Return values
void —setMessageCallback()
Set message callback
public
setMessageCallback(callable $callback) : void
Parameters
- $callback : callable
-
Message callback