VuFind API Documentation

CommitCommand extends AbstractSolrCommand
in package

Console command: commit to Solr

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

$solr  : Writer
Solr writer
$solrCommand  : string
The name of the Solr command, for use in help messages.
__construct()  : mixed
Constructor
configure()  : void
Configure the command.
execute()  : int
Run the command.

Properties

$solrCommand

The name of the Solr command, for use in help messages.

protected string $solrCommand = 'commit'

Methods

__construct()

Constructor

public __construct(Writer $solr[, string|null $name = null ]) : mixed
Parameters
$solr : Writer

Solr writer

$name : string|null = null

The name of the command; passing null means it must be set in configure()

Return values
mixed

configure()

Configure the command.

protected configure() : void
Return values
void

execute()

Run the command.

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface

Input object

$output : OutputInterface

Output object

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
int

0 for success

Search results