Class MARC_Subfield

Description

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

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

Located in /MARC.php (line 1492)

MARC_Link
   |
   --MARC_Subfield
Variable Summary
string $_code
string $_data
PEAR::ErrorStack $_stack
Method Summary
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 1498)

Subfield code, e.g. _a, _b

  • access: protected
string $_data (line 1504)

Data contained by the subfield

  • access: protected
PEAR::ErrorStack $_stack (line 1511)

Error stack

  • access: protected

Redefinition of:
MARC_Link::$_stack
Error stack

Inherited Variables

Inherited from MARC_Link

MARC_Link::$_next
MARC_Link::$_previous
Methods
Constructor __construct (line 1524)

MARC_Subfield constructor

Create a new subfield to represent the code and data

MARC_Subfield __construct (string $code, string $data)
  • string $code: Subfield code
  • string $data: Subfield data

Redefinition of:
MARC_Link::__construct()
MARC_Link constructor
Destructor __destruct (line 1536)

Destroys the subfield

void __destruct ()

Redefinition of:
MARC_Link::__destruct()
Removes link from the list, adjusting the next and previous links accordingly
delete (line 1548)

Destroys the subfield

void delete ()
getCode (line 1559)

Return code of the subfield

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

Return data of the subfield

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

Checks whether the subfield is empty or not

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

Sets code of the subfield

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

Sets data of the subfield

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

Return the USMARC representation of the subfield

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

Return string representation of subfield

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

Inherited Methods

Inherited From MARC_Link

MARC_Link::__construct()
MARC_Link::getErrors()
MARC_Link::next()
MARC_Link::previous()
MARC_Link::setNext()
MARC_Link::setPrevious()
MARC_Link::__destruct()

Documentation generated on Mon, 14 Aug 2006 18:59:30 -0400 by phpDocumentor 1.3.0RC6