VuFind API Documentation

AddEllipsis extends AbstractHelper
in package

"Add ellipsis" view helper

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

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

link

Main Site

Table of Contents

__invoke()  : string
Adds "..." to the beginning and/or end of a highlighted phrase when incomplete text is detected.

Methods

__invoke()

Adds "..." to the beginning and/or end of a highlighted phrase when incomplete text is detected.

public __invoke(string $highlighted, mixed $fullString) : string
Parameters
$highlighted : string

Highlighted, possibly abbreviated string

$fullString : mixed

Full, non-highlighted text

Return values
string

Highlighted string with ellipsis added

Search results