Public Member Functions | Static Public Member Functions | Data Fields

form Class Reference

Inheritance diagram for form:
module fileuploadable

Public Member Functions

 getHtml ($gotuid, $gotmoduleComponentId, $gotaction)
 actionView ()
 actionEditform ()
 actionViewregistrants ()
 actionEditregistrants ()
 actionReports ()

Static Public Member Functions

static getFileAccessPermission ($pageId, $moduleComponentId, $userId, $fileName)
static getUploadableFileProperties (&$fileTypesArray, &$maxFileSizeInBytes)
static getRegisteredUserArray ($moduleComponentId)
static getRegisteredUserCount ($moduleComponentId)
static isGroupAssociable ($moduleComponentId)

Data Fields

color __pad0__: #000

Detailed Description

Definition at line 52 of file form.lib.php.


Member Function Documentation

actionEditform (  ) 

Performs the action "Edit Form" on a form

Definition at line 202 of file form.lib.php.

actionEditregistrants (  ) 

After view registrants completes, generateFormDataRow() will be used here also then manually prepend the "delete" button and "edit" button columns

After generateFormDataTable() completes, move the code to generate the top header row (with the sort by this column images) to a new function and call it here also and manually prepened two

s of delete and edit

The delete button should point to a subaction through get vars

Clicking edit button, should do something like edit in 2nd form in "editform" does with a twist : to generate the edit form simply call generateRegistrationForm($moduleCompId,$userId,$action=) with action ./+editregistrants&subaction=editregistrant&useremail=<useremail>

and when submitted call submitRegistrationForm()

Default Values

Definition at line 242 of file form.lib.php.

actionReports (  ) 

Definition at line 329 of file form.lib.php.

actionView (  ) 

Find from db if registration form is editable,

that is 1) Expiry date has not passed and 2) form_allowuseredit is true 3) If form is of type allow logged in users only then make sure user is logged in

We will do captcha and send confirmation once everything else is done.

Check if the user has a completed profile. Otherwise, prompt to complete.

Definition at line 105 of file form.lib.php.

actionViewregistrants (  ) 

Default Values

Definition at line 228 of file form.lib.php.

static getFileAccessPermission ( pageId,
moduleComponentId,
userId,
fileName 
) [static]

Should return true in case file viewing allowed, false if not allowed

Implements fileuploadable.

Definition at line 84 of file form.lib.php.

getHtml ( gotuid,
gotmoduleComponentId,
gotaction 
)

Definition at line 57 of file form.lib.php.

static getRegisteredUserArray ( moduleComponentId  )  [static]

Determines User Ids of all users registered to a form

Parameters:
$moduleComponentId Module Component Id of the form
Returns:
Array of User Ids of all the users registered to the form with the given Module Component Id

Definition at line 170 of file form.lib.php.

static getRegisteredUserCount ( moduleComponentId  )  [static]

Definition at line 179 of file form.lib.php.

static getUploadableFileProperties ( &$  fileTypesArray,
&$  maxFileSizeInBytes 
) [static]

Definition at line 100 of file form.lib.php.

static isGroupAssociable ( moduleComponentId  )  [static]

Definition at line 186 of file form.lib.php.


Field Documentation

Definition at line 341 of file form.lib.php.


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