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

Public Member Functions

 deleteEntry ($request, $rowId)
 execute ($request)
 insertEntry ($request, $newRowId)
 readInputData ()
 UserForm ($template, $userId=null)
- 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)

Public Attributes

- Public Attributes inherited from Form

Detailed Description

Base class for user forms.

Definition at line 18 of file

Member Function Documentation

UserForm::deleteEntry (   $request,

Definition at line 87 of file

UserForm::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 52 of file

References DAORegistry\getDAO().

UserForm::insertEntry (   $request,

Definition at line 59 of file

UserForm::readInputData ( )

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

Definition at line 45 of file

References Form\getData(), and ListbuilderHandler\unpack().

Referenced by UserGridHandler\updateUserRoles().

UserForm::UserForm (   $template,
  $userId = null 


$userIdint optional
$authorAuthor optional

Definition at line 32 of file

References Form\addCheck().

Member Data Documentation

Id UserForm::$userId

of the user being edited

Definition at line 24 of file

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