Class PHP_MARC_Subfield

Description

PHP_MARC_Subfield class

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 /packages/collections/lib/php-marc/php-marc.php (line 1127)


	
			
Variable Summary
array $data
string $tag
Method Summary
void append (string $data)
bool is_empty ()
void php_marc_subfield (string 0, string|array 1)
string raw ()
string string ()
string tag ()
string value ()
array values ()
Variables
array $data = array() (line 1138)

Data array for all possible values

string $tag (line 1132)

Tag name of subfield, e.g. _a, _b

Methods
append (line 1197)

Append a value to the possible values

void append (string $data)
  • string $data: Value to append
is_empty (line 1229)

Is empty

Checks wether the subfield is empty or not

  • return: True or false
bool is_empty ()
php_marc_subfield (line 1148)

PHP_MARC_Subfield constructor

Create a new Subfield

void php_marc_subfield (string 0, string|array 1)
  • string 0: Subfield number
  • string|array 1: Either a single value for this subfield tag, or an array of values
raw (line 1214)

Return the USMARC representation of the field

  • return: USMARC representation
string raw ()
string (line 1206)

Return string representation of field

  • return: String representation
string string ()
tag (line 1166)

Return tag name of subfield

  • return: Tag name
string tag ()
value (line 1175)

Return first value

  • return: First possible value
string value ()
values (line 1188)

Return all possbile values

  • return: Values
array values ()

Documentation generated on Wed, 05 Mar 2008 16:47:04 -0600 by phpDocumentor 1.3.1