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

Public Member Functions

 _checkIfNewer ($productType, $productName, $newVersion)
 
 _installPlugin ($request, $path)
 
 _setConnectionParams ()
 
 _upgradePlugin ($request, $path, &$templateMgr)
 
 execute ($request)
 
 fetch ($request)
 
 readInputData ()
 
 UploadPluginForm ($function)
 
- Public Member Functions inherited from Form
 _decomposeArray ($name, $value, $stack)
 
 addCheck ($formValidator)
 
 addError ($field, $message)
 
 addErrorField ($field)
 
 display ($request=null, $template=null)
 
 execute ($object=null)
 
 fetch ($request, $template=null, $display=false)
 
 Form ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getFormLocale ()
 
 getLocaleFieldNames ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 initData ()
 
 isLocaleResubmit ()
 
 isValid ()
 
 readInputData ()
 
 readUserDateVars ($vars)
 
 readUserVars ($vars)
 
 setData ($key, $value)
 
 setTemplate ($template)
 
 smartyFormLanguageChooser ($params, &$smarty)
 
 validate ($callHooks=true)
 

Additional Inherited Members

- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form to upload a plugin file.

Definition at line 30 of file UploadPluginForm.inc.php.

Member Function Documentation

UploadPluginForm::_checkIfNewer (   $productType,
  $productName,
  $newVersion 
)

Checks to see if local version of plugin is newer than installed version

Parameters
$productTypestring Product type of plugin
$productNamestring Product name of plugin
$newVersionVersion Version object of plugin to check against database
Returns
boolean

Definition at line 220 of file UploadPluginForm.inc.php.

UploadPluginForm::_installPlugin (   $request,
  $path 
)

Installs the uploaded plugin

Parameters
$requestPKPRequest
$pathstring path to plugin Directory
Returns
boolean

Definition at line 141 of file UploadPluginForm.inc.php.

UploadPluginForm::_setConnectionParams ( )

Load database connection parameters into an array (needed for upgrade).

Returns
array

Definition at line 233 of file UploadPluginForm.inc.php.

UploadPluginForm::_upgradePlugin (   $request,
  $path,
$templateMgr 
)

Upgrade a plugin to a newer version from the user's filesystem

Parameters
$requestPKPRequest
$pathstring path to plugin Directory
$templateMgrreference to template manager
$categorystring
$pluginstring
Returns
boolean

Definition at line 255 of file UploadPluginForm.inc.php.

UploadPluginForm::execute (   $request)

Execute the form's action. (Note that it is assumed that the form has already been validated.)

Parameters
$objectobject The object edited by this form.
Returns
$object The same object, potentially changed via hook.

Definition at line 73 of file UploadPluginForm.inc.php.

UploadPluginForm::fetch (   $request)

Returns a string of the rendered form

Parameters
$requestPKPRequest
$templatestring the template to be rendered, mandatory if no template has been specified on class instantiation.
$displayboolean
Returns
string the rendered form

Definition at line 63 of file UploadPluginForm.inc.php.

UploadPluginForm::readInputData ( )

Assign form data to user-submitted data. Can be overridden from subclasses.

Definition at line 56 of file UploadPluginForm.inc.php.

UploadPluginForm::UploadPluginForm (   $function)

Constructor.

Definition at line 42 of file UploadPluginForm.inc.php.


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