VuFind-Marc API Documentation

SerializationFileInterface
in

MARC serialization file interface.

Tags
category

VuFind

author

Ere Maijala ere.maijala@helsinki.fi

license

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

link

Wiki

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
throws
Exception
Return values
string

openCollectionFile()

Open a collection file

public openCollectionFile(string $file) : void
Parameters
$file : string

File name

Tags
throws
Exception
Return values
void

setMessageCallback()

Set message callback

public setMessageCallback(callable $callback) : void
Parameters
$callback : callable

Message callback

Return values
void

Search results