Open Journal Systems  3.3.0
InstallLanguageForm Class Reference
Inheritance diagram for InstallLanguageForm:
Form

Public Member Functions

 __construct ()
 
 execute (... $functionArgs)
 
 fetch ($request, $template=null, $display=false)
 
 initData ()
 
 readInputData ()
 
- Public Member Functions inherited from Form
 __construct ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null)
 
 _decomposeArray ($name, $value, $stack)
 
 addCheck ($formValidator)
 
 addError ($field, $message)
 
 addErrorField ($field)
 
 addSupportedFormLocale ($supportedLocale)
 
 display ($request=null, $template=null)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getLocaleFieldNames ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 isValid ()
 
 readUserVars ($vars)
 
 setData ($key, $value=null)
 
 setDefaultFormLocale ($defaultLocale)
 
 setTemplate ($template)
 
 validate ($callHooks=true)
 

Additional Inherited Members

- Data Fields inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $defaultLocale
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for installing languages.

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

Constructor & Destructor Documentation

◆ __construct()

InstallLanguageForm::__construct ( )

Constructor.

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

Member Function Documentation

◆ execute()

InstallLanguageForm::execute (   $functionArgs)

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

Parameters
mixed$functionArgs,...Arguments from the caller to be passed to the hook consumer
Returns
mixed Result from the consumer to be passed to the caller. Send a true-ish result if you want the caller to do something with the return value.

Reimplemented from Form.

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

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

◆ fetch()

InstallLanguageForm::fetch (   $request,
  $template = null,
  $display = false 
)

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

Reimplemented from Form.

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

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

◆ initData()

InstallLanguageForm::initData ( )

Initialize form data for a new form.

Reimplemented from Form.

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

References PKPApplication\get(), and Form\setData().

◆ readInputData()

InstallLanguageForm::readInputData ( )

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

Reimplemented from Form.

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

References PKPApplication\get(), and Form\setData().


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