SerializationInterface
in
MARC serialization interface.
Tags
Table of Contents
- canParse() : bool
- Check if the serialization class can parse the given MARC string
- canParseCollection() : bool
- Check if the serialization class can parse the given MARC collection string
- collectionFromString() : array<string|int, mixed>
- Parse MARC collection from a string into an array of MarcReader classes
- fromString() : array<string|int, mixed>
- Parse MARC from a string
- toString() : string
- Convert record to a string representing the format supported by the serialization class
Methods
canParse()
Check if the serialization class can parse the given MARC string
public
static canParse(string $marc) : bool
Parameters
- $marc : string
-
MARC
Return values
bool —canParseCollection()
Check if the serialization class can parse the given MARC collection string
public
static canParseCollection(string $marc) : bool
Parameters
- $marc : string
-
MARC
Return values
bool —collectionFromString()
Parse MARC collection from a string into an array of MarcReader classes
public
static collectionFromString(string $collection) : array<string|int, mixed>
Parameters
- $collection : string
-
MARC record collection in the format supported by the serialization class
Tags
Return values
array<string|int, mixed> —fromString()
Parse MARC from a string
public
static fromString(string $marc) : array<string|int, mixed>
Parameters
- $marc : string
-
MARC record in the format supported by the serialization class
Tags
Return values
array<string|int, mixed> —toString()
Convert record to a string representing the format supported by the serialization class
public
static toString(array<string|int, mixed> $data) : string
Parameters
- $data : array<string|int, mixed>
-
Record data