You are here

public function Field::make_clone in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/marcParse/php-marc.php \Field::make_clone()
  2. 6 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

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

Class

Field
Field Class Create a MARC Field object.

Code

public 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);
  }
}