File_MARC
[ class tree: File_MARC ] [ index: File_MARC ] [ all elements ]

Class: File_MARC_Subfield

Source Location: /File_MARC-0.2.3/MARC/Subfield.php

Class Overview

Structures_LinkedList_DoubleNode
   |
   --File_MARC_Subfield

The File_MARC_Subfield class represents a single subfield in a MARC record field.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 56]
The File_MARC_Subfield class represents a single subfield in a MARC record field.

Represents a subfield within a MARC field and implements all management functions related to a single subfield. This class also implements the possibility of duplicate subfields within a single field, for example 650 _z Test1 _z Test2.



[ Top ]


Class Variables

$code =

[line 63]

Subfield code, e.g. _a, _b
  • Access: protected

Type:   string


[ Top ]

$data =

[line 69]

Data contained by the subfield
  • Access: protected

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 81]

File_MARC_Subfield __construct( string $code, string $data)

File_MARC_Subfield constructor

Create a new subfield to represent the code and data


Parameters:

string   $code   —  Subfield code
string   $data   —  Subfield data

[ Top ]

__destruct (Destructor)   [line 92]

void __destruct( )

Destroys the subfield

[ Top ]

delete   [line 106]

true delete( )

Destroys the subfield

[ Top ]

getCode   [line 118]

string getCode( )

Return code of the subfield
  • Return: Tag name

[ Top ]

getData   [line 130]

string getData( )

Return data of the subfield
  • Return: data

[ Top ]

isEmpty   [line 204]

bool isEmpty( )

Checks whether the subfield is empty or not
  • Return: True or false

[ Top ]

setCode   [line 170]

string setCode( string $code)

Sets code of the subfield
  • Return: code

Parameters:

string   $code   —  new code for the subfield

[ Top ]

setData   [line 191]

string setData( string $data)

Sets data of the subfield
  • Return: data

Parameters:

string   $data   —  new data for the subfield

[ Top ]

toRaw   [line 155]

string toRaw( )

Return the USMARC representation of the subfield
  • Return: USMARC representation

[ Top ]

__toString   [line 142]

string __toString( )

Return string representation of subfield
  • Return: String representation
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:26:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.