Open Preprint Systems  3.3.0
Upgrade Class Reference
Inheritance diagram for Upgrade:
Installer

Public Member Functions

 __construct ($params, $installFile='upgrade.xml', $isPlugin=false)
 
 changeSubmissionStageToProduction ()
 
 clearCssCache ()
 
 isUpgrade ()
 
 rebuildSearchIndex ()
 
- Public Member Functions inherited from Installer
 abort ($installer, $attr)
 
 addInstallAction ($node)
 
 addPluginVersions ()
 
 checkPhpVersion ()
 
 clearDataCache ()
 
 columnExists ($tableName, $columnName)
 
 destroy ()
 
 execute ()
 
 executeAction ($action)
 
 executeInstaller ()
 
 executeSQL ($sql)
 
 fixLibraryFiles ()
 
 getConfigContents ()
 
 getCurrentVersion ()
 
 getErrorMsg ()
 
 getErrorString ()
 
 getErrorType ()
 
 getNewVersion ()
 
 getNotes ()
 
 getParam ($name)
 
 getSQL ()
 
 installDefaultNavigationMenus ()
 
 installEmailTemplate ($installer, $attr)
 
 installFilterConfig ($filterConfigFile)
 
 log ($message)
 
 migrateMetadataSettings ()
 
 migrateSidebarBlocks ()
 
 migrateSiteLocales ()
 
 parseInstaller ()
 
 parseInstallNodes ($installTree)
 
 postInstall ()
 
 preInstall ()
 
 setCurrentVersion ($version)
 
 setError ($type, $msg)
 
 setLogger ($logger)
 
 setStatsEmailSettings ()
 
 tableExists ($tableName)
 
 updateConfig ($configParams)
 
 updateVersion ()
 
 wroteConfig ()
 

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
 

Detailed Description

Perform system upgrade.

Definition at line 18 of file Upgrade.inc.php.

Constructor & Destructor Documentation

◆ __construct()

Upgrade::__construct (   $params,
  $installFile = 'upgrade.xml',
  $isPlugin = false 
)

Constructor.

Parameters
$paramsarray upgrade parameters

Reimplemented from Installer.

Definition at line 23 of file Upgrade.inc.php.

References Installer\$isPlugin, and Installer\$params.

Member Function Documentation

◆ changeSubmissionStageToProduction()

Upgrade::changeSubmissionStageToProduction ( )

Submissions with stage_id=WORKFLOW_STAGE_ID_SUBMISSION should be changed to stage_id=WORKFLOW_STAGE_ID_PRODUCTION, which is the only stage in OPS

Returns
boolean

Definition at line 65 of file Upgrade.inc.php.

References DAORegistry\getDAO().

◆ clearCssCache()

Upgrade::clearCssCache ( )

Clear the CSS cache files (needed when changing LESS files)

Returns
boolean

Definition at line 54 of file Upgrade.inc.php.

References PKPApplication\get(), and PKPTemplateManager\getManager().

◆ isUpgrade()

Upgrade::isUpgrade ( )

Returns true iff this is an upgrade process.

Returns
boolean

Reimplemented from Installer.

Definition at line 32 of file Upgrade.inc.php.

◆ rebuildSearchIndex()

Upgrade::rebuildSearchIndex ( )

Rebuild the search index.

Returns
boolean

Definition at line 44 of file Upgrade.inc.php.

References Application\getSubmissionSearchIndex().


The documentation for this class was generated from the following file: