Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
SiteSetupForm Class Reference

Inherits PKPSiteSettingsForm.

Public Member Functions

 _getDeleteFileLinkAction ($settingName, $request)
 
 _getFileUploadLinkAction ($settingName, $fileType, $request)
 
 deleteFile ($fileSettingName, $request)
 
 execute ()
 
 fetch ($request, $params=null)
 
 initData ($request)
 
 readInputData ()
 
 renderFileView ($fileSettingName, $request)
 
 SiteSetupForm ()
 
- Public Member Functions inherited from PKPSiteSettingsForm
 display ()
 
 execute ()
 
 initData ()
 
 PKPSiteSettingsForm ()
 
 readInputData ()
 
 uploadPageHeaderTitleImage ($locale)
 
 uploadSiteStyleSheet ()
 
- 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 PKPSiteSettingsForm
 $siteSettingsDao
 
- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form to edit site settings.

See Also
PKPSiteSettingsForm

Definition at line 20 of file SiteSetupForm.inc.php.

Member Function Documentation

SiteSetupForm::_getDeleteFileLinkAction (   $settingName,
  $request 
)

Get the delete file link action.

Parameters
$setttingNamestring File setting name.
$requestRequest
Returns
LinkAction

Definition at line 295 of file SiteSetupForm.inc.php.

Referenced by renderFileView().

SiteSetupForm::_getFileUploadLinkAction (   $settingName,
  $fileType,
  $request 
)

Get a link action for file upload.

Parameters
$settingNamestring
$fileTypestring The uploaded file type.
$requestRequest
Returns
LinkAction

Definition at line 266 of file SiteSetupForm.inc.php.

Referenced by fetch().

SiteSetupForm::deleteFile (   $fileSettingName,
  $request 
)

Delete an uploaded file.

Parameters
$fileSettingNamestring
Returns
boolean

Definition at line 229 of file SiteSetupForm.inc.php.

References DAORegistry\getDAO(), Form\getData(), and AppLocale\getLocale().

SiteSetupForm::execute ( )
SiteSetupForm::fetch (   $request,
  $params = null 
)
SiteSetupForm::initData (   $request)
See Also
PKPSiteSettingsForm::initData()
Parameters
$requestPKPRequest

Definition at line 95 of file SiteSetupForm.inc.php.

References Form\setData().

SiteSetupForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 126 of file SiteSetupForm.inc.php.

References Form\readUserVars().

SiteSetupForm::renderFileView (   $fileSettingName,
  $request 
)

Render a template to show details about an uploaded file in the form and a link action to delete it.

Parameters
$fileSettingNamestring The uploaded file setting name.
$requestRequest
Returns
string

Definition at line 184 of file SiteSetupForm.inc.php.

References _getDeleteFileLinkAction(), Form\getData(), and AppLocale\getLocale().

Referenced by fetch().

SiteSetupForm::SiteSetupForm ( )

Constructor.

Definition at line 24 of file SiteSetupForm.inc.php.

References Form\addCheck(), DAORegistry\getDAO(), and AppLocale\requireComponents().


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