You are here

class USMARC in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/marcParse/php-marc.php \USMARC
  2. 6 marcParse/php-marc.php \USMARC
  3. 7.2 modules/marcParse/php-marc.php \USMARC

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

Hierarchy

Expanded class hierarchy of USMARC

File

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

View source
class USMARC extends File {

  /**
   * Read raw MARC string for decoding.
   *
   * @param string Raw MARC
   */
  public function __construct($string) {
    $this->raw[] = $string;
    $this->pointer = 0;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
File::$pointer public property Current position in the array of records.
File::$raw public property Array containing raw records.
File::$warn public property Array of warnings.
File::decode public function Decode a given raw MARC record.
File::next public function Return next Record-object.
File::num_records public function Get the number of records available in this Record.
File::warnings public function Get warning(s)
File::_croak public function Croaking function.
File::_next public function Return the next raw MARC record.
File::_warn public function Fuction to issue warnings.
USMARC::__construct public function Read raw MARC string for decoding. Overrides File::__construct