示例#1
0
 /**
  * Appends field to MARC record
  *
  * Adds a {@link File_MARC_Control_Field} or {@link File_MARC_Data_Field}
  * object to the end of the existing list of fields.
  *
  * @param File_MARC_Field $new_field The field to add
  *
  * @return File_MARC_Field The field that was added
  */
 function appendField(File_MARC_Field $new_field)
 {
     /* Append as the last field in the record */
     $this->fields->appendNode($new_field);
     return $new_field;
 }
示例#2
0
 /**
  * Appends subfield to subfield list
  *
  * Adds a File_MARC_Subfield object to the end of the existing list
  * of subfields.
  *
  * @param File_MARC_Subfield $new_subfield The subfield to add
  *
  * @return File_MARC_Subfield the new File_MARC_Subfield object
  */
 function appendSubfield(File_MARC_Subfield $new_subfield)
 {
     /* Append as the last subfield in the field */
     $this->subfields->appendNode($new_subfield);
 }