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

- Public Attributes inherited from Form

Detailed Description

Base class for a settings upload file form.

Definition at line 18 of file

Member Function Documentation

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

Returns a string of the rendered form

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

Definition at line 70 of file

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

References Form\readUserVars().

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



Definition at line 27 of file

References Form\addCheck().

SettingsFileUploadForm::uploadFile (   $request)

Upload a temporary file.


Definition at line 117 of file

Member Data Documentation


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

Definition at line 21 of file

Referenced by getFileSettingName().

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