Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
SettingsFileUploadForm Class Reference
Inheritance diagram for SettingsFileUploadForm:
Form NewContextCssFileForm NewContextImageFileForm NewSiteCssFileForm NewSiteImageFileForm

Public Member Functions

 fetch ($request, $params=null)
 
 fetchTemporaryFile ($request)
 
 getFileSettingName ()
 
 readInputData ()
 
 removeTemporaryFile ($request)
 
 setFileSettingName ($fileSettingName)
 
 SettingsFileUploadForm ($template=null)
 
 uploadFile ($request)
 
- 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)
 

Public Attributes

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

Detailed Description

Base class for a settings upload file form.

Definition at line 18 of file SettingsFileUploadForm.inc.php.

Member Function Documentation

SettingsFileUploadForm::fetch (   $request,
  $params = null 
)

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 70 of file SettingsFileUploadForm.inc.php.

References getFileSettingName().

SettingsFileUploadForm::fetchTemporaryFile (   $request)
SettingsFileUploadForm::getFileSettingName ( )
SettingsFileUploadForm::readInputData ( )

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

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

References Form\readUserVars().

SettingsFileUploadForm::removeTemporaryFile (   $request)
SettingsFileUploadForm::setFileSettingName (   $fileSettingName)
SettingsFileUploadForm::SettingsFileUploadForm (   $template = null)

Constructor.

Parameters
$templatestring

Definition at line 27 of file SettingsFileUploadForm.inc.php.

References Form\addCheck().

SettingsFileUploadForm::uploadFile (   $request)

Upload a temporary file.

Parameters
$requestRequest

Definition at line 117 of file SettingsFileUploadForm.inc.php.

Member Data Documentation

SettingsFileUploadForm::$_fileSettingName

string Setting key that will be associated with the uploaded file.

Definition at line 21 of file SettingsFileUploadForm.inc.php.

Referenced by getFileSettingName().


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