PHP Class Upgrade, ojs

Inheritance: extends CI_Controller
Afficher le fichier Open project: pkp/ojs Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

_createQuery() public méthode

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

clearDataCache() public méthode

Clear the data cache files (needed because of direct tinkering with settings tables)
public clearDataCache ( ) : boolean
Résultat boolean

convertEditorDecisionNotes() public méthode

Convert editor decision notes to a query.
public convertEditorDecisionNotes ( ) : boolean
Résultat boolean True indicates success.

convertQueries() public méthode

Convert signoffs to queries.
public convertQueries ( ) : boolean
Résultat boolean True indicates success.

convertSupplementaryFiles() public méthode

Convert supplementary files to submission files.
public convertSupplementaryFiles ( ) : boolean
Résultat boolean True indicates success.

fixReviewForms() public méthode

Modernize review form storage from OJS 2.x
public fixReviewForms ( ) : boolean
Résultat boolean

htmlifyEmailTemplates() public méthode

Convert email templates to HTML.
public htmlifyEmailTemplates ( ) : boolean
Résultat boolean True indicates success.

installDefaultGenres() public méthode

For 3.0.0 upgrade. Genres are required to migrate files.

isUpgrade() public méthode

Returns true iff this is an upgrade process.
public isUpgrade ( ) : boolean
Résultat boolean

localizeArticleCoverImages() public méthode

Localize article cover images.
public localizeArticleCoverImages ( ) : boolean
Résultat boolean True indicates success.

localizeCustomBlockSettings() public méthode

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

localizeIssueCoverImages() public méthode

Localize issue cover images.
public localizeIssueCoverImages ( ) : boolean
Résultat boolean True indicates success.

migrateArticleMetadata() public méthode

For 3.0.0 upgrade: Convert string-field semi-colon separated metadata to controlled vocabularies.
public migrateArticleMetadata ( ) : boolean
Résultat boolean

migrateCounterPluginUsageStatistics() public méthode

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

migrateDefaultUsageStatistics() public méthode

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

migrateFiles() public méthode

Migrate submission filenames from OJS 2.x
public migrateFiles ( $upgrade, $params ) : boolean
$upgrade Upgrade
$params array
Résultat boolean

migrateTimedViewsUsageStatistics() public méthode

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

migrateUserRoles() public méthode

For 3.0.0 upgrade: Migrate the static user role structure to user groups and stage assignments.
public migrateUserRoles ( ) : boolean
Résultat boolean

rebuildSearchIndex() public méthode

Rebuild the search index.
public rebuildSearchIndex ( ) : boolean
Résultat boolean

setFileName() public méthode

Set the missing file names.
public setFileName ( ) : boolean
Résultat boolean True indicates success.

setFileUploader() public méthode

Set the missing uploader user id and group id to a journal manager.
public setFileUploader ( ) : boolean
Résultat boolean True indicates success.

syncSeriesAssocType() public méthode

Synchronize the ASSOC_TYPE_SERIES constant to ASSOC_TYPE_SECTION defined in PKPApplication.
public syncSeriesAssocType ( ) : boolean
Résultat boolean