PHP Класс DOIPubIdExportPlugin, ojs

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

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

Метод Описание
__construct ( ) Constructor
_instantiateSettingsForm ( $context ) : CrossRefSettingsForm Instantiate the settings form.
callbackParseCronTab ( $hookName, $args )
depositXML ( $objects, $context, $filename ) : boolean Deposit XML document.
display ( $args, $request )
executeExportAction ( $request, $objects, $filter, $tab, $objectsFileNamePart )
getAdditionalFieldNames ( $hookName, $args ) Hook callback that returns the "registeredDoi" setting's name prefixed with the plug-in's id to avoid name collisions.
getArticleGalleys ( $galleyIds, $context ) : array Get article galleys with a DOI assigned from gallley IDs.
getDepositSuccessNotificationMessageKey ( ) Get the locale key used in the notification for the successful deposit.
getPubIdDisplayType ( ) : string Get pub ID display type
getPubIdType ( ) : string Get pub ID type
getPublishedArticles ( $submissionIds, $context ) : array Get published articles with a DOI asigned from submission IDs.
getPublishedIssues ( $issueIds, $context ) : array Get published issues with a DOI asigned from issue IDs.
getUnregisteredArticles ( $context ) : array Retrieve all unregistered articles.
getUnregisteredGalleys ( $context ) : array Retrieve all unregistered articles.
getUnregisteredIssues ( $context ) : array Retrieve all unregistered issues.
markRegistered ( $context, $objects ) Mark selected submissions or issues as registered.
register ( $category, $path )
saveRegisteredDoi ( $context, $object, $testPrefix = '10.1234' ) Saving object's DOI to the object's "registeredDoi" setting.

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

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

Constructor
public __construct ( )

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

Instantiate the settings form.
public _instantiateSettingsForm ( $context ) : CrossRefSettingsForm
$context Context
Результат CrossRefSettingsForm

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

public callbackParseCronTab ( $hookName, $args )

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

This must be implemented in the subclasses, if the action is supported.
abstract public depositXML ( $objects, $context, $filename ) : boolean
$objects mixed Array of or single published article, issue or galley
$context Context
$filename Export XML filename
Результат boolean Whether the XML document has been registered

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

public display ( $args, $request )

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

public executeExportAction ( $request, $objects, $filter, $tab, $objectsFileNamePart )

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

Hook callback that returns the "registeredDoi" 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 with a DOI assigned from gallley IDs.
public getArticleGalleys ( $galleyIds, $context ) : array
$galleyIds array
$context Context
Результат array

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

Get the locale key used in the notification for the successful deposit.

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

Get pub ID display type
public getPubIdDisplayType ( ) : string
Результат string

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

Get pub ID type
public getPubIdType ( ) : string
Результат string

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

Get published articles with a DOI asigned from submission IDs.
public getPublishedArticles ( $submissionIds, $context ) : array
$submissionIds array
$context Context
Результат array

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

Get published issues with a DOI asigned from issue IDs.
public getPublishedIssues ( $issueIds, $context ) : array
$issueIds array
$context Context
Результат array

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

Retrieve all unregistered articles.
public getUnregisteredArticles ( $context ) : array
$context Context
Результат array

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

Retrieve all unregistered articles.
public getUnregisteredGalleys ( $context ) : array
$context Context
Результат array

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

Retrieve all unregistered issues.
public getUnregisteredIssues ( $context ) : array
$context Context
Результат array

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 )

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

We prefix the setting with the plugin's id so that we do not get name clashes when several DOI registration plug-ins are active at the same time.
public saveRegisteredDoi ( $context, $object, $testPrefix = '10.1234' )
$context Context
$object Issue|PublishedArticle|ArticleGalley
$testPrefix string