Open Journal Systems  3.3.0
UserRoleForm Class Reference
Inheritance diagram for UserRoleForm:
UserForm Form

Public Member Functions

 __construct ($userId, $userFullName)
 
 display ($request=null, $template=null)
 
 execute (... $functionParams)
 
- Public Member Functions inherited from UserForm
 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)
 
 fetch ($request, $template=null, $display=false)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getLocaleFieldNames ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 isValid ()
 
 readUserVars ($vars)
 
 setData ($key, $value=null)
 
 setDefaultFormLocale ($defaultLocale)
 
 setTemplate ($template)
 
 validate ($callHooks=true)
 

Data Fields

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

Detailed Description

Form for managing roles for a newly created user.

Definition at line 18 of file UserRoleForm.inc.php.

Constructor & Destructor Documentation

◆ __construct()

UserRoleForm::__construct (   $userId,
  $userFullName 
)

Constructor.

Parameters
int$userId
string$userFullName

Reimplemented from UserForm.

Definition at line 31 of file UserRoleForm.inc.php.

References UserForm\$userId, and Form\addCheck().

Member Function Documentation

◆ display()

UserRoleForm::display (   $request = null,
  $template = null 
)

Display the form.

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

Reimplemented from UserForm.

Definition at line 42 of file UserRoleForm.inc.php.

References PKPTemplateManager\getManager().

◆ execute()

UserRoleForm::execute (   $functionParams)

Update user's roles.

Reimplemented from UserForm.

Definition at line 54 of file UserRoleForm.inc.php.

References DAORegistry\getDAO().

Field Documentation

◆ $_userFullName

UserRoleForm::$_userFullName

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


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