PHP 클래스 ImportExportPlugin, pkp-lib

상속: extends Plugin
파일 보기 프로젝트 열기: pkp/pkp-lib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_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