PHP Класс PubObjectsExportPlugin, ojs

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

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

Свойство Тип Описание
$_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.
public getDepositStatusSettingName ( ) : string
Результат string

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