You are here

public function USMARC::__construct in Bibliography Module 7

Read raw MARC string for decoding.

Parameters

string Raw MARC:

Overrides File::__construct

File

modules/marcParse/php-marc.php, line 387
@package PHP-MARC

Class

USMARC
USMARC Class Extension class to File class, which allows passing of raw MARC string instead of filename.

Code

public function __construct($string) {
  $this->raw[] = $string;
  $this->pointer = 0;
}