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

Class: File_MARC_Subfield

Source Location: /File_MARC-1.4.1/File/MARC/Subfield.php

Class Overview


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 ]

$position =

[line 75]

Position of the subfield
  • Access: protected

Type:   int


[ Top ]



Method Detail

__construct (Constructor)   [line 88]

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 99]

void __destruct( )

Destroys the subfield

[ Top ]

delete   [line 113]

true delete( )

Destroys the subfield

[ Top ]

getCode   [line 125]

string getCode( )

Return code of the subfield
  • Return: Tag name

[ Top ]

getData   [line 137]

string getData( )

Return data of the subfield
  • Return: data

[ Top ]

getPosition   [line 149]

int getPosition( )

Return position of the subfield
  • Return: data

[ Top ]

isEmpty   [line 237]

bool isEmpty( )

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

[ Top ]

setCode   [line 189]

string setCode( string $code)

Sets code of the subfield
  • Return: code

Parameters:

string   $code   —  new code for the subfield

[ Top ]

setData   [line 210]

string setData( string $data)

Sets data of the subfield
  • Return: data

Parameters:

string   $data   —  new data for the subfield

[ Top ]

setPosition   [line 225]

void setPosition( string $pos)

Sets position of the subfield

Parameters:

string   $pos   —  new position of the subfield

[ Top ]

toRaw   [line 174]

string toRaw( )

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

[ Top ]

__toString   [line 161]

string __toString( )

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

[ Top ]


Documentation generated on Wed, 13 Nov 2019 12:37:08 -0500 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.