You are here

function Field::make_clone in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 modules/marcParse/php-marc.php \Field::make_clone()
  2. 7 modules/marcParse/php-marc.php \Field::make_clone()
  3. 7.2 modules/marcParse/php-marc.php \Field::make_clone()

* Clone Field * *

Return value

Field Cloned Field object

File

marcParse/php-marc.php, line 940

Class

Field
Field Class Create a MARC Field object

Code

function make_clone() {
  if ($this->is_control) {
    return new Field($this->tagno, $this->data);
  }
  else {
    return new Field($this->tagno, $this->ind1, $this->ind2, $this->subfields);
  }
}