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

Public Member Functions

 execute ($request)
 
 fetch ($request)
 
 initData ($request)
 
 InstallLanguageForm ($wizardMode=false)
 
 readInputData ($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)
 

Additional Inherited Members

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

Detailed Description

Form for installing languages.

Definition at line 19 of file InstallLanguageForm.inc.php.

Member Function Documentation

InstallLanguageForm::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 88 of file InstallLanguageForm.inc.php.

References Form\$supportedLocales, DAORegistry\getDAO(), Form\getData(), AppLocale\installLocale(), and PKPLocale\isLocaleValid().

InstallLanguageForm::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 44 of file InstallLanguageForm.inc.php.

References PKPLocale\getAllLocales(), and Form\getData().

InstallLanguageForm::initData (   $request)

Initialize form data for a new form.

Definition at line 34 of file InstallLanguageForm.inc.php.

References Form\setData().

InstallLanguageForm::InstallLanguageForm (   $wizardMode = false)

Constructor.

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

InstallLanguageForm::readInputData (   $request)

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

Definition at line 78 of file InstallLanguageForm.inc.php.

References Form\setData().


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