SuppressedCommand
extends AbstractSolrAndIlsCommand
in package
Console command: remove suppressed records from index
Tags
Table of Contents
- $catalog : Connection
- ILS connection
- $solr : Writer
- Solr writer
- __construct() : mixed
- Constructor
- configure() : void
- Configure the command.
- execute() : int
- Run the command.
- writeToDisk() : bool
- Write content to disk.
Properties
$catalog
ILS connection
protected
Connection
$catalog
$solr
Solr writer
protected
Writer
$solr
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
Return values
int —0 for success
writeToDisk()
Write content to disk.
protected
writeToDisk(string $filename, string $content) : bool
Parameters
- $filename : string
-
Target filename
- $content : string
-
Content to write