You are here

function Record::leader in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 marcParse/php-marc.php \Record::leader()
  2. 7 modules/marcParse/php-marc.php \Record::leader()
  3. 7.2 modules/marcParse/php-marc.php \Record::leader()

Get/Set Leader

If argument specified, sets leader, otherwise gets leader. No validation on the specified leader is performed

Parameters

string Leader:

Return value

string|null Return leader in case requested.

File

modules/marcParse/php-marc.php, line 444

Class

Record
Record Class Create a MARC Record class

Code

function leader($ldr = "") {
  if ($ldr) {
    $this->ldr = $ldr;
  }
  else {
    return $this->ldr;
  }
}