OAI-PMH Harvest Tool (Symfony Console Command)
category |
VuFind |
---|---|
package |
Harvest_Tools |
author |
Demian Katz demian.katz@villanova.edu |
license |
http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
link |
Wiki |
__construct(\Laminas\Http\Client $client = null, string $harvestRoot = null, \VuFindHarvest\OaiPmh\HarvesterFactory $factory = null, boolean $silent = false, string|null $name = null)
\Laminas\Http\Client
HTTP client (omit for default)
string
Root directory for harvesting (omit for default)
\VuFindHarvest\OaiPmh\HarvesterFactory
Harvester factory (omit for default)
boolean
Should we suppress output?
string|null
The name of the command; passing null means it must be set in configure()
configure() : void
execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output) : integer
\Symfony\Component\Console\Input\InputInterface
Input object
\Symfony\Component\Console\Output\OutputInterface
Output object
integer
0 for success
getHarvestRoot() : string
string
getHttpClient() : \Laminas\Http\Client
\Laminas\Http\Client
getSettings(\Symfony\Component\Console\Input\InputInterface $input) : array|boolean
\Symfony\Component\Console\Input\InputInterface
Input object
array|boolean
getSettingsFromIni(string $ini, string|boolean $section) : array|boolean
string
Configuration file to load
string|boolean
Section of .ini to load (or false for all)
array|boolean
harvestSingleRepository(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output, string $target, array $settings) : void
Throws |
|
---|
\Symfony\Component\Console\Input\InputInterface
Input object
\Symfony\Component\Console\Output\OutputInterface
Output object
string
Name of repo (used for target directory)
array
Settings for the harvester.
setOutputWriter(\VuFindHarvest\ConsoleOutput\WriterInterface $writer) : void
updateSettingsWithConsoleOptions(\Symfony\Component\Console\Input\InputInterface $input, array $settings) : array
\Symfony\Component\Console\Input\InputInterface
Input object
array
Incoming settings
array
write(string $str) : void
string
String to write.
writeLine(string $str) : void
string
String to write.
defaultName : string
var |
---|
string
client : \Laminas\Http\Client
var |
---|
\Laminas\Http\Client
harvestRoot : string
var |
---|
string
factory : \VuFindHarvest\OaiPmh\HarvesterFactory
var |
---|
\VuFindHarvest\OaiPmh\HarvesterFactory
silent : boolean
var |
---|
boolean
outputWriter : \VuFindHarvest\ConsoleOutput\WriterInterface