VuFind API Documentation

ComponentParts extends AbstractBase
in package

Component parts display tab

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

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

link

Wiki

Table of Contents

$accessPermission  : string
Permission that must be granted to access this module (null for no restriction)
$driver  : AbstractBase|null
Record driver associated with the tab
$maxResults  : int
Maximum results to display
$request  : Request|bool
User request associated with the tab (false for none)
$results  : array<string|int, mixed>
Similar records
$searchService  : Service
Search service
__construct()  : mixed
Constructor
getDescription()  : string
Get the on-screen description for this tab.
getMaxResults()  : int
Get the maximum result count.
getResults()  : RecordCollectionInterface
Get the contents for display.
isActive()  : bool
Is this tab active?
isVisible()  : bool
Is this tab initially visible?
setRecordDriver()  : AbstractBase
Set the record driver
setRequest()  : AbstractBase
Set the user request
supportsAjax()  : bool
Can this tab be loaded via AJAX?
getRecordDriver()  : AbstractBase
Get the record driver
getRequest()  : Request|bool
Get the user request (or false if unavailable)

Properties

$accessPermission

Permission that must be granted to access this module (null for no restriction)

protected string $accessPermission = null

$maxResults

Maximum results to display

protected int $maxResults = 100

$request

User request associated with the tab (false for none)

protected Request|bool $request = false

$results

Similar records

protected array<string|int, mixed> $results

Methods

__construct()

Constructor

public __construct(Service $search) : mixed
Parameters
$search : Service

Search service

Return values
mixed

getDescription()

Get the on-screen description for this tab.

public getDescription() : string
Return values
string

getMaxResults()

Get the maximum result count.

public getMaxResults() : int
Return values
int

getResults()

Get the contents for display.

public getResults() : RecordCollectionInterface
Return values
RecordCollectionInterface

isActive()

Is this tab active?

public isActive() : bool
Return values
bool

isVisible()

Is this tab initially visible?

public isVisible() : bool
Return values
bool

supportsAjax()

Can this tab be loaded via AJAX?

public supportsAjax() : bool
Return values
bool

getRequest()

Get the user request (or false if unavailable)

protected getRequest() : Request|bool
Return values
Request|bool

Search results