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

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

Detailed Description

Form for installing languages.

Definition at line 19 of file

Member Function Documentation

InstallLanguageForm::execute (   $request)

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

$objectobject The object edited by this form.
$object The same object, potentially changed via hook.

Definition at line 88 of file

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

InstallLanguageForm::fetch (   $request)

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 44 of file

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

InstallLanguageForm::initData (   $request)

Initialize form data for a new form.

Definition at line 34 of file

References Form\setData().

InstallLanguageForm::InstallLanguageForm (   $wizardMode = false)


Definition at line 24 of file

InstallLanguageForm::readInputData (   $request)

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

Definition at line 78 of file

References Form\setData().

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