PHP Класс Upgrade, ojs

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

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

Метод Описание
__construct ( $params, $installFile = 'upgrade.xml', $isPlugin = false ) Constructor.
_createQuery ( $stageId, $submissionId, $sequence, $title, $dateNotified = null )
clearDataCache ( ) : boolean Clear the data cache files (needed because of direct tinkering with settings tables)
convertEditorDecisionNotes ( ) : boolean Convert editor decision notes to a query.
convertQueries ( ) : boolean Convert signoffs to queries.
convertSupplementaryFiles ( ) : boolean Convert supplementary files to submission files.
fixReviewForms ( ) : boolean Modernize review form storage from OJS 2.x
htmlifyEmailTemplates ( ) : boolean Convert email templates to HTML.
installDefaultGenres ( ) For 3.0.0 upgrade. Genres are required to migrate files.
isUpgrade ( ) : boolean Returns true iff this is an upgrade process.
localizeArticleCoverImages ( ) : boolean Localize article cover images.
localizeCustomBlockSettings ( ) For 2.4.6 upgrade: to enable localization of a CustomBlock, the blockContent values are converted from string to array (key: primary_language)
localizeIssueCoverImages ( ) : boolean Localize issue cover images.
migrateArticleMetadata ( ) : boolean For 3.0.0 upgrade: Convert string-field semi-colon separated metadata to controlled vocabularies.
migrateCounterPluginUsageStatistics ( ) For 2.4 upgrade: migrate COUNTER statistics to the metrics table.
migrateDefaultUsageStatistics ( ) For 2.4 upgrade: migrate OJS default statistics to the metrics table.
migrateFiles ( $upgrade, $params ) : boolean Migrate submission filenames from OJS 2.x
migrateTimedViewsUsageStatistics ( ) For 2.4 upgrade: migrate Timed views statistics to the metrics table.
migrateUserRoles ( ) : boolean For 3.0.0 upgrade: Migrate the static user role structure to user groups and stage assignments.
rebuildSearchIndex ( ) : boolean Rebuild the search index.
setFileName ( ) : boolean Set the missing file names.
setFileUploader ( ) : boolean Set the missing uploader user id and group id to a journal manager.
syncSeriesAssocType ( ) : boolean Synchronize the ASSOC_TYPE_SERIES constant to ASSOC_TYPE_SECTION defined in PKPApplication.

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

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

Constructor.
public __construct ( $params, $installFile = 'upgrade.xml', $isPlugin = false )
$params array upgrade parameters

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

public _createQuery ( $stageId, $submissionId, $sequence, $title, $dateNotified = null )

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

Clear the data cache files (needed because of direct tinkering with settings tables)
public clearDataCache ( ) : boolean
Результат boolean

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

Convert editor decision notes to a query.
public convertEditorDecisionNotes ( ) : boolean
Результат boolean True indicates success.

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

Convert signoffs to queries.
public convertQueries ( ) : boolean
Результат boolean True indicates success.

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

Convert supplementary files to submission files.
public convertSupplementaryFiles ( ) : boolean
Результат boolean True indicates success.

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

Modernize review form storage from OJS 2.x
public fixReviewForms ( ) : boolean
Результат boolean

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

Convert email templates to HTML.
public htmlifyEmailTemplates ( ) : boolean
Результат boolean True indicates success.

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

For 3.0.0 upgrade. Genres are required to migrate files.

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

Returns true iff this is an upgrade process.
public isUpgrade ( ) : boolean
Результат boolean

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

Localize article cover images.
public localizeArticleCoverImages ( ) : boolean
Результат boolean True indicates success.

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

For 2.4.6 upgrade: to enable localization of a CustomBlock, the blockContent values are converted from string to array (key: primary_language)

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

Localize issue cover images.
public localizeIssueCoverImages ( ) : boolean
Результат boolean True indicates success.

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

For 3.0.0 upgrade: Convert string-field semi-colon separated metadata to controlled vocabularies.
public migrateArticleMetadata ( ) : boolean
Результат boolean

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

For 2.4 upgrade: migrate COUNTER statistics to the metrics table.

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

For 2.4 upgrade: migrate OJS default statistics to the metrics table.

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

Migrate submission filenames from OJS 2.x
public migrateFiles ( $upgrade, $params ) : boolean
$upgrade Upgrade
$params array
Результат boolean

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

For 2.4 upgrade: migrate Timed views statistics to the metrics table.

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

For 3.0.0 upgrade: Migrate the static user role structure to user groups and stage assignments.
public migrateUserRoles ( ) : boolean
Результат boolean

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

Rebuild the search index.
public rebuildSearchIndex ( ) : boolean
Результат boolean

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

Set the missing file names.
public setFileName ( ) : boolean
Результат boolean True indicates success.

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

Set the missing uploader user id and group id to a journal manager.
public setFileUploader ( ) : boolean
Результат boolean True indicates success.

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

Synchronize the ASSOC_TYPE_SERIES constant to ASSOC_TYPE_SECTION defined in PKPApplication.
public syncSeriesAssocType ( ) : boolean
Результат boolean