PHP 클래스 Upgrade, ojs

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

공개 메소드들

메소드 설명
__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