VuFind API Documentation

GetFieldValueFixTrait

Trait that provides an improved version of the getFieldValue method.

Tags
category

VuFind

author

Ere Maijala ere.maijala@helsinki.fi

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

getFieldValue()  : string
Retrieve header value

Methods

getFieldValue()

Retrieve header value

public getFieldValue([bool $format = HeaderInterface::FORMAT_RAW ]) : string

Overrides the original implementation to always enclose name in quotes.

Parameters
$format : bool = HeaderInterface::FORMAT_RAW

Return the value in Mime::Encoded (HeaderInterface::FORMAT_ENCODED) or in Raw format (HeaderInterface::FORMAT_RAW). Using a constant from HeaderInterface is recommended instead of a raw boolean value.

Return values
string

Search results