Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
Install Class Reference

Inherits PKPInstall.

Public Member Functions

 createData ()
 
 getCreateDirectories ()
 
 Install ($params, $descriptor= 'install.xml', $isPlugin=false)
 
- Public Member Functions inherited from PKPInstall
 createConfig ()
 
 createDatabase ()
 
 createDirectories ()
 
 getCreateDirectories ()
 
 isUpgrade ()
 
 PKPInstall ($xmlDescriptor, $params, $isPlugin)
 
 preInstall ()
 
- Public Member Functions inherited from Installer
 addInstallAction (&$node)
 
 addPluginVersions ()
 
 clearDataCache ()
 
 columnExists ($tableName, $columnName)
 
 destroy ()
 
 execute ()
 
 executeAction ($action)
 
 executeInstaller ()
 
 fileExists ($filePath)
 
 getConfigContents ()
 
getCurrentVersion ()
 
 getErrorMsg ()
 
 getErrorString ()
 
 getErrorType ()
 
getNewVersion ()
 
 getNotes ()
 
 getParam ($name)
 
 getSQL ()
 
 installEmailTemplate ($installer, $attr)
 
 Installer ($descriptor, $params=array(), $isPlugin=false)
 
 installFilterConfig ($filterConfigFile)
 
 isUpgrade ()
 
 parseInstaller ()
 
 parseInstallNodes (&$installTree)
 
 postInstall ()
 
 preInstall ()
 
 setError ($type, $msg)
 
 tableExists ($tableName)
 
 updateConfig ($configParams)
 
 updateVersion ()
 
 wroteConfig ()
 

Detailed Description

Perform system installation.

See Also
Installer, InstallForm

This script will:

  • Create the database (optionally), and install the database tables and initial data.
  • Update the config file with installation parameters.

Definition at line 28 of file Install.inc.php.

Member Function Documentation

Install::createData ( )

Create initial required data.

Returns
boolean

Definition at line 59 of file Install.inc.php.

References Validation\encryptCredentials(), DAORegistry\getDAO(), Installer\getParam(), and Installer\setError().

Install::getCreateDirectories ( )

Get the names of the directories to create.

Returns
array

Definition at line 49 of file Install.inc.php.

Install::Install (   $params,
  $descriptor = 'install.xml',
  $isPlugin = false 
)

Constructor.

See Also
install.form.InstallForm for the expected parameters
Parameters
$paramsarray installer parameters
$descriptorstring descriptor path
$isPluginboolean true iff a plugin is being installed

Definition at line 37 of file Install.inc.php.


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