Form to upload a plugin file. More...
Public Member Functions | |
| _checkIfNewer ($productType, $productName, $newVersion) | |
| _installPlugin ($request, $path) | |
| _setConnectionParams () | |
| _upgradePlugin ($request, $path, &$templateMgr) | |
| execute (&$request) | |
| fetch (&$request) | |
| readInputData () | |
| UploadPluginForm ($function) | |
Form to upload a plugin file.
Definition at line 29 of file UploadPluginForm.inc.php.
| UploadPluginForm._checkIfNewer | ( | $ | productType, | |
| $ | productName, | |||
| $ | newVersion | |||
| ) |
Checks to see if local version of plugin is newer than installed version
| $productType | string Product type of plugin | |
| $productName | string Product name of plugin | |
| $newVersion | Version Version object of plugin to check against database |
Definition at line 216 of file UploadPluginForm.inc.php.
Referenced by _installPlugin(), and _upgradePlugin().
| UploadPluginForm._installPlugin | ( | $ | request, | |
| $ | path | |||
| ) |
Installs the uploaded plugin
| $request | PKPRequest | |
| $path | string path to plugin Directory |
Definition at line 137 of file UploadPluginForm.inc.php.
References _checkIfNewer(), and _setConnectionParams().
Referenced by execute().
| UploadPluginForm._setConnectionParams | ( | ) |
Load database connection parameters into an array (needed for upgrade).
Definition at line 229 of file UploadPluginForm.inc.php.
Referenced by _installPlugin(), and _upgradePlugin().
| UploadPluginForm._upgradePlugin | ( | $ | request, | |
| $ | path, | |||
| &$ | templateMgr | |||
| ) |
Upgrade a plugin to a newer version from the user's filesystem
| $request | PKPRequest | |
| $path | string path to plugin Directory | |
| $templateMgr | reference to template manager | |
| $category | string | |
| $plugin | string |
Definition at line 251 of file UploadPluginForm.inc.php.
References _checkIfNewer(), and _setConnectionParams().
Referenced by execute().
| UploadPluginForm.execute | ( | &$ | request | ) |
Definition at line 69 of file UploadPluginForm.inc.php.
References _installPlugin(), and _upgradePlugin().
| UploadPluginForm.fetch | ( | &$ | request | ) |
Definition at line 59 of file UploadPluginForm.inc.php.
| UploadPluginForm.readInputData | ( | ) |
Definition at line 52 of file UploadPluginForm.inc.php.
| UploadPluginForm.UploadPluginForm | ( | $ | function | ) |
Constructor.
Definition at line 38 of file UploadPluginForm.inc.php.
1.7.1