PHP Класс ImportExportPlugin, pkp-lib

Наследование: extends Plugin
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_request Request made available for plugin URL generation

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

display() публичный Метод

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

displayXMLValidationErrors() публичный Метод

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

executeCLI() абстрактный публичный Метод

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 getActions ( $request, $actionArgs )

getExportFileName() публичный Метод

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
Результат string

getExportPath() публичный Метод

Return the plugin export directory.
public getExportPath ( ) : string
Результат string The export directory path.

getPluginSettingsPrefix() публичный Метод

Get the plugin ID used as plugin settings prefix.
public getPluginSettingsPrefix ( ) : string
Результат string

isAllowedMethod() публичный Метод

Determine whether the specified URL describes an allowed protocol.
public isAllowedMethod ( $url ) : boolean
$url string
Результат boolean

isRelativePath() публичный Метод

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() публичный Метод

Generate a URL into the plugin.
См. также: calling conventions at http://www.smarty.net/docsv2/en/api.register.function.tpl
public pluginUrl ( $params, &$smarty ) : string
$params array
$smarty Smarty
Результат string

usage() абстрактный публичный Метод

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

Описание свойств

$_request публичное свойство

Request made available for plugin URL generation
public $_request