VuFind API Documentation

PluginFactory extends AbstractPluginFactory
in package

Autocomplete handler plugin factory

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

$classSuffix  : string
Optional suffix to append to class names
$defaultNamespace  : string
Default namespace for building class names
__construct()  : mixed
Constructor
__invoke()  : object
Create a service for the specified name.
canCreate()  : bool
Can we create a service for the specified name?
getClassName()  : string
Get the name of a class for a given plugin name.

Properties

$defaultNamespace

Default namespace for building class names

protected string $defaultNamespace

Methods

__construct()

Constructor

public __construct() : mixed
Return values
mixed

__invoke()

Create a service for the specified name.

public __invoke(ContainerInterface $container, string $requestedName[, array<string|int, mixed> $options = null ]) : object
Parameters
$container : ContainerInterface

Service container

$requestedName : string

Name of service

$options : array<string|int, mixed> = null

Options (unused)

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
object

canCreate()

Can we create a service for the specified name?

public canCreate(ContainerInterface $container, string $requestedName) : bool
Parameters
$container : ContainerInterface

Service container

$requestedName : string

Name of service

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
bool

getClassName()

Get the name of a class for a given plugin name.

protected getClassName(string $requestedName) : string
Parameters
$requestedName : string

Name of service

Return values
string

Fully qualified class name

Search results