Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
Upgrade Class Reference
Inheritance diagram for Upgrade:
Installer

Public Member Functions

 enableDefaultTheme ()
 
 fixFilenames ($upgrade, $params, $dryrun=false)
 
 isUpgrade ()
 
 syncSeriesAssocType ()
 
 Upgrade ($params, $installFile= 'upgrade.xml', $isPlugin=false)
 
- Public Member Functions inherited from Installer
 abort ($installer, $attr)
 
 addInstallAction ($node)
 
 addPluginVersions ()
 
 clearDataCache ()
 
 columnExists ($tableName, $columnName)
 
 destroy ()
 
 execute ()
 
 executeAction ($action)
 
 executeInstaller ()
 
 executeSQL ($sql)
 
 getConfigContents ()
 
 getCurrentVersion ()
 
 getErrorMsg ()
 
 getErrorString ()
 
 getErrorType ()
 
 getNewVersion ()
 
 getNotes ()
 
 getParam ($name)
 
 getSQL ()
 
 installEmailTemplate ($installer, $attr)
 
 Installer ($descriptor, $params=array(), $isPlugin=false)
 
 installFilterConfig ($filterConfigFile)
 
 isUpgrade ()
 
 log ($message)
 
 parseInstaller ()
 
 parseInstallNodes ($installTree)
 
 postInstall ()
 
 preInstall ()
 
 setCurrentVersion ($version)
 
 setError ($type, $msg)
 
 setLogger ($logger)
 
 tableExists ($tableName)
 
 updateConfig ($configParams)
 
 updateVersion ()
 
 wroteConfig ()
 

Additional Inherited Members

- Public Attributes inherited from Installer
 $actions
 
 $configContents
 
 $currentVersion
 
 $dataXMLParser
 
 $dbconn
 
 $descriptor
 
 $errorMsg
 
 $errorType
 
 $installedLocales
 
 $isPlugin
 
 $locale
 
 $logger
 
 $newVersion
 
 $notes
 
 $params
 
 $sql
 
 $wroteConfig
 

Detailed Description

Perform system upgrade.

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

Member Function Documentation

Upgrade::enableDefaultTheme ( )

Enable the default theme plugin for versions < 1.1.

Returns
boolean

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

References DAORegistry\getDAO().

Upgrade::fixFilenames (   $upgrade,
  $params,
  $dryrun = false 
)

Fix broken submission filenames (bug #8461)

Parameters
$upgradeUpgrade
$paramsarray
$dryrunboolean True iff only a dry run (displaying rather than executing changes) should be done.
Returns
boolean

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

References DAORegistry\getDAO().

Upgrade::isUpgrade ( )

Returns true iff this is an upgrade process.

Returns
boolean

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

Upgrade::syncSeriesAssocType ( )

Synchronize the ASSOC_TYPE_SERIES constant to ASSOC_TYPE_SECTION defined in PKPApplication.

Returns
boolean

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

References DAORegistry\getDAO().

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

Constructor.

Parameters
$paramsarray upgrade parameters

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

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


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