PHP Class ImportExportPlugin, pkp-lib

Inheritance: extends Plugin
Afficher le fichier Open project: pkp/pkp-lib Class Usage Examples

Méthodes publiques

Свойство Type Description
$_request Request made available for plugin URL generation

Méthodes publiques

Méthode Description
__construct ( ) Constructor
display ( $args, $request ) Display the import/export plugin.
displayXMLValidationErrors ( $errors, $xml ) Display XML validation errors.
executeCLI ( $scriptName, &$args ) Execute import/export tasks using the command-line interface.
getActions ( $request, $actionArgs )
getExportFileName ( $basePath, $objectsFileNamePart, $context, $extension = '.xml' ) : string Return the whole export file name.
getExportPath ( ) : string Return the plugin export directory.
getPluginSettingsPrefix ( ) : string Get the plugin ID used as plugin settings prefix.
isAllowedMethod ( $url ) : boolean Determine whether the specified URL describes an allowed protocol.
isRelativePath ( $url ) Check if this is a relative path to the xml document that describes public identifiers to be imported.
pluginUrl ( $params, &$smarty ) : string Generate a URL into the plugin.
usage ( $scriptName ) Display the command-line usage information

Method Details

__construct() public méthode

Constructor
public __construct ( )

display() public méthode

Display the import/export plugin.
public display ( $args, $request )
$args array
$request PKPRequest

displayXMLValidationErrors() public méthode

Display XML validation errors.
public displayXMLValidationErrors ( $errors, $xml )
$errors array
$xml string

executeCLI() abstract public méthode

Execute import/export tasks using the command-line interface.
abstract public executeCLI ( $scriptName, &$args )
$scriptName The name of the command-line script (displayed as usage info)
$args Parameters to the plugin

getActions() public méthode

public getActions ( $request, $actionArgs )

getExportFileName() public méthode

Return the whole export file name.
public getExportFileName ( $basePath, $objectsFileNamePart, $context, $extension = '.xml' ) : string
$basePath string Base path for temporary file storage
$objectsFileNamePart string Part different for each object type.
$context Context
$extension string
Résultat string

getExportPath() public méthode

Return the plugin export directory.
public getExportPath ( ) : string
Résultat string The export directory path.

getPluginSettingsPrefix() public méthode

Get the plugin ID used as plugin settings prefix.
public getPluginSettingsPrefix ( ) : string
Résultat string

isAllowedMethod() public méthode

Determine whether the specified URL describes an allowed protocol.
public isAllowedMethod ( $url ) : boolean
$url string
Résultat boolean

isRelativePath() public méthode

Check if this is a relative path to the xml document that describes public identifiers to be imported.
public isRelativePath ( $url )
$url string path to the xml file

pluginUrl() public méthode

Generate a URL into the plugin.
See also: calling conventions at http://www.smarty.net/docsv2/en/api.register.function.tpl
public pluginUrl ( $params, &$smarty ) : string
$params array
$smarty Smarty
Résultat string

usage() abstract public méthode

Display the command-line usage information
abstract public usage ( $scriptName )
$scriptName string

Property Details

$_request public_oe property

Request made available for plugin URL generation
public $_request