PHP 클래스 PubObjectsExportPlugin, ojs

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

공개 프로퍼티들

프로퍼티 타입 설명
$_cache PubObjectCache

공개 메소드들

메소드 설명
__construct ( ) Constructor
_instantiateExportDeployment ( $context ) : PKPImportExportDeployment Instantiate the export deployment.
_sendNotification ( $user, $message, $notificationType, $param = null ) Add a notification.
display ( $args, $request )
executeCLI ( $scriptName, &$args )
executeCLICommand ( $scriptName, $command, $context, $outputFile, $objects, $filter, $objectsFileNamePart ) Execute the CLI command
executeExportAction ( $request, $objects, $filter, $tab, $objectsFileNamePart ) Execute export action.
exportXML ( $objects, $filter, $context ) : string Get the XML for selected objects.
getAdditionalFieldNames ( $hookName, $args ) Hook callback that returns the setting's name prefixed with the plug-in's id to avoid name collisions.
getArticleGalleys ( $galleyIds, $context ) : array Get article galleys from gallley IDs.
getCache ( ) : PubObjectCache Get the plugin cache
getDepositStatusSettingName ( ) : string Get deposit status setting name.
getExportActionNames ( ) : array Get action names.
getExportActions ( $context ) : array Get actions.
getExportDeploymentClassName ( ) : string Return the name of the plugin's deployment class.
getIssueFilter ( ) : string | null Get the issue filter.
getPublishedArticles ( $submissionIds, $context ) : array Get published articles from submission IDs.
getPublishedIssues ( $issueIds, $context ) : array Get published issues from issue IDs.
getRepresentationFilter ( ) : string | null Get the representation filter.
getStatusActions ( $pubObject ) : array Get status actions for the display to the user, i.e. links to a web site with more information about the status.
getStatusNames ( ) : array Get status names for the filter search option.
getSubmissionFilter ( ) : string | null Get the submission filter.
getTemplatePath ( $inCore = false )
isTestMode ( $context ) : boolean Check whether we are in test mode.
manage ( $args, $request )
markRegistered ( $context, $objects ) Mark selected submissions or issues as registered.
register ( $category, $path )
registerDaoHook ( $daoName ) Register the hook that adds an additional field name to objects.
updateObject ( $object ) Update the given object.
usage ( $scriptName )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

_instantiateExportDeployment() 공개 메소드

Instantiate the export deployment.
public _instantiateExportDeployment ( $context ) : PKPImportExportDeployment
$context Context
리턴 PKPImportExportDeployment

_sendNotification() 공개 메소드

Add a notification.
public _sendNotification ( $user, $message, $notificationType, $param = null )
$user User
$message string An i18n key.
$notificationType integer One of the NOTIFICATION_TYPE_* constants.
$param string An additional parameter for the message.

display() 공개 메소드

public display ( $args, $request )

executeCLI() 공개 메소드

public executeCLI ( $scriptName, &$args )

executeCLICommand() 공개 메소드

Execute the CLI command
public executeCLICommand ( $scriptName, $command, $context, $outputFile, $objects, $filter, $objectsFileNamePart )
$scriptName The name of the command-line script (displayed as usage info)
$command string (export or register)
$context Context
$outputFile string Path to the file where the exported XML should be saved
$objects array Objects to be exported or registered
$filter string Filter to use
$objectsFileNamePart string Export file name part for this kind of objects

executeExportAction() 공개 메소드

Execute export action.
public executeExportAction ( $request, $objects, $filter, $tab, $objectsFileNamePart )
$request Request
$objects array Array of objects to be exported
$filter string Filter to use
$tab string Tab to return to
$objectsFileNamePart string Export file name part for this kind of objects

exportXML() 공개 메소드

Get the XML for selected objects.
public exportXML ( $objects, $filter, $context ) : string
$objects mixed Array of or single published article, issue or galley
$filter string
$context Context
리턴 string XML document.

getAdditionalFieldNames() 공개 메소드

Hook callback that returns the setting's name prefixed with the plug-in's id to avoid name collisions.
또한 보기: DAO::getAdditionalFieldNames()
public getAdditionalFieldNames ( $hookName, $args )
$hookName string
$args array

getArticleGalleys() 공개 메소드

Get article galleys from gallley IDs.
public getArticleGalleys ( $galleyIds, $context ) : array
$galleyIds array
$context Context
리턴 array

getCache() 공개 메소드

Get the plugin cache
public getCache ( ) : PubObjectCache
리턴 PubObjectCache

getDepositStatusSettingName() 공개 메소드

Get deposit status setting name.

getExportActionNames() 공개 메소드

Get action names.
public getExportActionNames ( ) : array
리턴 array (string action => string text)

getExportActions() 공개 메소드

Get actions.
public getExportActions ( $context ) : array
$context Context
리턴 array

getExportDeploymentClassName() 추상적인 공개 메소드

Return the name of the plugin's deployment class.
abstract public getExportDeploymentClassName ( ) : string
리턴 string

getIssueFilter() 공개 메소드

Get the issue filter.
public getIssueFilter ( ) : string | null
리턴 string | null

getPublishedArticles() 공개 메소드

Get published articles from submission IDs.
public getPublishedArticles ( $submissionIds, $context ) : array
$submissionIds array
$context Context
리턴 array

getPublishedIssues() 공개 메소드

Get published issues from issue IDs.
public getPublishedIssues ( $issueIds, $context ) : array
$issueIds array
$context Context
리턴 array

getRepresentationFilter() 공개 메소드

Get the representation filter.
public getRepresentationFilter ( ) : string | null
리턴 string | null

getStatusActions() 공개 메소드

Get status actions for the display to the user, i.e. links to a web site with more information about the status.
public getStatusActions ( $pubObject ) : array
$pubObject
리턴 array (string status => link)

getStatusNames() 공개 메소드

Get status names for the filter search option.
public getStatusNames ( ) : array
리턴 array (string status => string text)

getSubmissionFilter() 공개 메소드

Get the submission filter.
public getSubmissionFilter ( ) : string | null
리턴 string | null

getTemplatePath() 공개 메소드

public getTemplatePath ( $inCore = false )

isTestMode() 공개 메소드

Check whether we are in test mode.
public isTestMode ( $context ) : boolean
$context Context
리턴 boolean

manage() 공개 메소드

public manage ( $args, $request )

markRegistered() 공개 메소드

Mark selected submissions or issues as registered.
public markRegistered ( $context, $objects )
$context Context
$objects array Array of published articles, issues or galleys

register() 공개 메소드

public register ( $category, $path )

registerDaoHook() 공개 메소드

Register the hook that adds an additional field name to objects.
public registerDaoHook ( $daoName )
$daoName string

updateObject() 공개 메소드

Update the given object.
public updateObject ( $object )
$object Issue|PublishedArticle|ArticleGAlley

usage() 공개 메소드

public usage ( $scriptName )

프로퍼티 상세

$_cache 공개적으로 프로퍼티

public PubObjectCache $_cache
리턴 PubObjectCache