Class File_MARC_Subfield

Description

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.

Located in /MARC/Subfield.php (line 55)

Structures_LinkedList_DoubleNode
   |
   --File_MARC_Subfield
Variable Summary
string $code
string $data
Method Summary
File_MARC_Subfield __construct (string $code, string $data)
void __destruct ()
void delete ()
string getCode ()
string getData ()
bool isEmpty ()
string setCode (string $code)
string setData (string $data)
string toRaw ()
string __toString ()
Variables
string $code (line 61)

Subfield code, e.g. _a, _b

  • access: protected
string $data (line 67)

Data contained by the subfield

  • access: protected
Methods
Constructor __construct (line 79)

File_MARC_Subfield constructor

Create a new subfield to represent the code and data

File_MARC_Subfield __construct (string $code, string $data)
  • string $code: Subfield code
  • string $data: Subfield data
Destructor __destruct (line 90)

Destroys the subfield

void __destruct ()
delete (line 102)

Destroys the subfield

void delete ()
getCode (line 114)

Return code of the subfield

  • return: Tag name
string getCode ()
getData (line 126)

Return data of the subfield

  • return: data
string getData ()
isEmpty (line 198)

Checks whether the subfield is empty or not

  • return: True or false
bool isEmpty ()
setCode (line 165)

Sets code of the subfield

  • return: code
string setCode (string $code)
  • string $code: new code for the subfield
setData (line 185)

Sets data of the subfield

  • return: data
string setData (string $data)
  • string $data: new data for the subfield
toRaw (line 151)

Return the USMARC representation of the subfield

  • return: USMARC representation
string toRaw ()
__toString (line 138)

Return string representation of subfield

  • return: String representation
  • access: public
string __toString ()

Documentation generated on Mon, 01 Jan 2007 23:44:42 -0500 by phpDocumentor 1.3.1