API:EPrints/CLIProcessor
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
Contents
NAME
EPrints::CLIProcessor - utility module supporting command-line scripts
DESCRIPTION
Currently this module is just a 'handler' for import scripts. In future it may do more things to support the CLI (Command-Line Interface) to EPrints.
METHODS
new
$processor = EPrints::CLIProcessor->new( session => $session, %opts )
Create a new processor object. Supported options:
scripted - backwards compatibility for import scripted interface
add_message
$processor->add_message( TYPE, MESSAGE )
Add a message for the user. TYPE is 'error', 'warning' or 'message'. MESSAGE is an XHTML fragment.
parsed
$processor->parsed( [ $epdata ] )
Register a parsed event, optionally with $epdata.
object
$processor->object( DATASET, DATAOBJ )
Register a new object event in DATASET with new object DATAOBJ.