|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| extractPlugin ($filePath, $originalFileName) | |
| installPlugin ($path) | |
| upgradePlugin ($category, $plugin, $path) | |
Protected Member Functions | |
| _checkIfNewer ($productType, $productName, $newVersion) | |
| _getConnectionParams () | |
Helper class implementing plugin administration functions.
Definition at line 29 of file PluginHelper.inc.php.
|
protected |
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 146 of file PluginHelper.inc.php.
References DAORegistry\getDAO().
Referenced by installPlugin(), and upgradePlugin().
|
protected |
Load database connection parameters into an array (needed for upgrade).
Definition at line 157 of file PluginHelper.inc.php.
References Config\getVar().
Referenced by installPlugin(), and upgradePlugin().
| PluginHelper::extractPlugin | ( | $filePath, | |
| $originalFileName | |||
| ) |
Extract and validate a plugin (prior to installation)
| $filePath | string Full path to plugin archive |
| $originalFileName | string Original filename of plugin archive |
Definition at line 36 of file PluginHelper.inc.php.
References Config\getVar(), and PKPString\regexp_match_get().
| PluginHelper::installPlugin | ( | $path | ) |
Installs an extracted plugin
| $path | string path to plugin Directory |
Definition at line 96 of file PluginHelper.inc.php.
References _checkIfNewer(), _getConnectionParams(), Core\getBaseDir(), DAORegistry\getDAO(), and VersionCheck\getValidPluginVersionInfo().
| PluginHelper::upgradePlugin | ( | $category, | |
| $plugin, | |||
| $path | |||
| ) |
Upgrade a plugin to a newer version from the user's filesystem
| $category | string |
| $plugin | string |
| $path | string path to plugin Directory |
Definition at line 176 of file PluginHelper.inc.php.
References _checkIfNewer(), _getConnectionParams(), Core\getBaseDir(), DAORegistry\getDAO(), and VersionCheck\getValidPluginVersionInfo().