|
Open Monograph Press
3.3.0
|
Additional Inherited Members | |
Data Fields inherited from Installer | |
| $actions | |
| $configContents | |
| $currentVersion | |
| $dataXMLParser | |
| $dbconn | |
| $descriptor | |
| $errorMsg | |
| $errorType | |
| $installedLocales | |
| $isPlugin | |
| $locale | |
| $logger | |
| $migrations = [] | |
| $newVersion | |
| $notes | |
| $params | |
| $sql | |
| $wroteConfig | |
Perform system upgrade.
Definition at line 19 of file Upgrade.inc.php.
| Upgrade::__construct | ( | $params, | |
$installFile = 'upgrade.xml', |
|||
$isPlugin = false |
|||
| ) |
Constructor.
| $params | array upgrade parameters |
Reimplemented from Installer.
Definition at line 25 of file Upgrade.inc.php.
References Installer\$isPlugin, and Installer\$params.
| Upgrade::changeUserRolesAndStageAssignmentsForStagePermitSubmissionEdit | ( | ) |
Update permit_metadata_edit and can_change_metadata for user_groups and stage_assignments tables.
Definition at line 696 of file Upgrade.inc.php.
References fatalError(), DAORegistry\getDAO(), and UserGroupDAO\getNotChangeMetadataEditPermissionRoles().
| Upgrade::convertCommentsToEditor | ( | ) |
Convert comments to editors to queries.
Definition at line 435 of file Upgrade.inc.php.
References DAORegistry\getDAO(), and PKPString\stripUnsafeHtml().
| Upgrade::convertQueries | ( | ) |
Convert signoffs to queries.
Definition at line 263 of file Upgrade.inc.php.
References DAORegistry\getDAO().
| Upgrade::enableDefaultTheme | ( | ) |
Enable the default theme plugin for versions < 1.1.
Definition at line 106 of file Upgrade.inc.php.
References DAORegistry\getDAO().
| Upgrade::fixAuthorSettings | ( | ) |
Fix incorrectly stored author settings. (See bug #8663.)
Definition at line 154 of file Upgrade.inc.php.
References Installer\$locale, and DAORegistry\getDAO().
| Upgrade::fixFilenames | ( | $upgrade, | |
| $params, | |||
$dryrun = false |
|||
| ) |
Fix broken submission filenames (bug #8461)
| $upgrade | Upgrade |
| $params | array |
| $dryrun | boolean True iff only a dry run (displaying rather than executing changes) should be done. |
Definition at line 50 of file Upgrade.inc.php.
References DAORegistry\getDAO(), and strtolower_codesafe().
Referenced by fixFilenames\execute().
| Upgrade::fixQueriesAssocTypes | ( | ) |
The assoc_type = ASSOC_TYPE_REPRESENTATION (from SIGNOFF_PROOFING migration) should be changed to assoc_type = ASSOC_TYPE_SUBMISSION, for queries to be displayed in the production discussions list. After changing this, the submission queries should be resequenced, in their order in the DB table.
Definition at line 390 of file Upgrade.inc.php.
References DAORegistry\getDAO().
| Upgrade::htmlifyEmailTemplates | ( | ) |
Convert email templates to HTML.
Definition at line 196 of file Upgrade.inc.php.
References DAORegistry\getDAO().
| Upgrade::isUpgrade | ( | ) |
Returns true iff this is an upgrade process.
Reimplemented from Installer.
Definition at line 34 of file Upgrade.inc.php.
| Upgrade::migrateStaticPagesToNavigationMenuItems | ( | ) |
If StaticPages table exists we should port the data as NMIs
Definition at line 557 of file Upgrade.inc.php.
References Application\getContextDAO(), DAORegistry\getDAO(), and Installer\tableExists().
| Upgrade::migrateSubmissionCoverImages | ( | ) |
Update how submission cover images are stored
Definition at line 732 of file Upgrade.inc.php.
References PKPServices\get(), and DAORegistry\getDAO().
| Upgrade::migrateUserAndAuthorNames | ( | ) |
Migrate first and last user names as multilingual into the DB table user_settings.
Definition at line 587 of file Upgrade.inc.php.
References Installer\$locale, Installer\$params, fatalError(), DAORegistry\getDAO(), and PKPLocale\isLocaleWithFamilyFirst().
| Upgrade::syncSeriesAssocType | ( | ) |
Synchronize the ASSOC_TYPE_SERIES constant to ASSOC_TYPE_SECTION defined in PKPApplication.
Definition at line 125 of file Upgrade.inc.php.
References DAORegistry\getDAO().