Grima  2018-08
Whispering into Alma's ear
Public Member Functions | List of all members
MARC21RecordSetIterator Class Reference
Inheritance diagram for MARC21RecordSetIterator:
ISO2709RecordSetIterator

Public Member Functions

  __construct ( $input)
 
- Public Member Functions inherited from ISO2709RecordSetIterator
  __construct ( $input)
 
  valid ()
 
  current ()
 
  key ()
 
  next ()
 
  rewind ()
 

Additional Inherited Members

- Public Attributes inherited from ISO2709RecordSetIterator
  $currentPosition
 
  $currentRecord
 
  $valid
 
  $RecordTerminator
 
  $prepend
 
- Protected Attributes inherited from ISO2709RecordSetIterator
  $input
 

Detailed Description

Definition at line 5 of file MARC21.php.

Constructor & Destructor Documentation

◆ __construct()

MARC21RecordSetIterator::__construct (   $input )

Definition at line 6 of file MARC21.php.

References ISO2709RecordSetIterator\$input, and ISO2709\RecordTerminator.

6  {
7  parent::__construct( $input );
8  $this->prepend = fread( $this->input, 5 );
9  if( ctype_digit( $this->prepend ) ) $this->RecordTerminator = ISO2709::RecordTerminator;
10  else if( $this->prepend === "=LDR " ) {
11  $this->RecordTerminator = "\r\n\r\n";
12  } else if( $this->prepend === "=000 " ) {
13  $this->RecordTerminator = "\r\n\r\n";
14  }
15  $this->recordClass = "MARC21Record";
16  }
const RecordTerminator
Definition: ISO2709.php:121

The documentation for this class was generated from the following file: