Namespaces | Functions

cms/modules/form/registrationformsubmit.php File Reference

Go to the source code of this file.

Namespaces

namespace  pragyan
 

Widget Framework for Pragyan CMS (c) 2010 Pragyan Team http://www.gnu.org/licenses/ GNU Public License For more details, see README Add support for File Upload/Download via the widget's configurations Reload Widgets ,Get Widget Instances. see bottom.


Functions

 submitRegistrationForm ($moduleCompId, $userId, $silent=false, $disableCaptcha=false)
 submitCaptcha ()
 submitRegistrationFormText ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormTextarea ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormRadio ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormCheckbox ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormSelect ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormPassword ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormFile ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormDate ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 submitRegistrationFormDatetime ($moduleCompId, $elementId, $userId, $postVarName, $elementName, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, $elementIsRequired)
 verifyDate ($inputDate)
 verifyTime ($inputTime)
 insertFormView ($moduleComponentId, $userId)
 updateFormSubmitCount ($moduleComponentId, $userId)
 registerUser ($moduleCompId, $userId)
 updateUser ($moduleCompId, $userId)
 verifyUserRegistered ($moduleCompId, $userId)
 verifyUserProfileFilled ($userId)
 unregisterUser ($moduleCompId, $userId, $silentOnSuccess=false)

Function Documentation

insertFormView ( moduleComponentId,
userId 
)

Definition at line 557 of file registrationformsubmit.php.

registerUser ( moduleCompId,
userId 
)

Register a user in form_regdata table

Definition at line 583 of file registrationformsubmit.php.

submitCaptcha (  ) 

Checks if user entered correct captcha generated from getCaptchaHtml()

Definition at line 148 of file registrationformsubmit.php.

submitRegistrationForm ( moduleCompId,
userId,
silent = false,
disableCaptcha = false 
)

-------------------------Get anonymous unique negative user id---------------

-----------------------------Anonymous user id ends------------------------------- ---------------------------- CAPTCHA Validation ----------------------------------

------------------------ CAPTCHA Validation Ends Here ----------------------------

Definition at line 26 of file registrationformsubmit.php.

submitRegistrationFormCheckbox ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 300 of file registrationformsubmit.php.

submitRegistrationFormDate ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 442 of file registrationformsubmit.php.

submitRegistrationFormDatetime ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 469 of file registrationformsubmit.php.

submitRegistrationFormFile ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

if the user is uploading a file with any name again, delete existing file

Definition at line 398 of file registrationformsubmit.php.

submitRegistrationFormPassword ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 374 of file registrationformsubmit.php.

submitRegistrationFormRadio ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 265 of file registrationformsubmit.php.

submitRegistrationFormSelect ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 342 of file registrationformsubmit.php.

submitRegistrationFormText ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 176 of file registrationformsubmit.php.

submitRegistrationFormTextarea ( moduleCompId,
elementId,
userId,
postVarName,
elementName,
elementSize,
elementTypeOptions,
elementMoreThan,
elementLessThan,
elementCheckInt,
elementIsRequired 
)

Definition at line 235 of file registrationformsubmit.php.

unregisterUser ( moduleCompId,
userId,
silentOnSuccess = false 
)

Unegister a user in form_regdata table and remove his data from elementdata table

Remove any files uploaded by the user

Definition at line 650 of file registrationformsubmit.php.

updateFormSubmitCount ( moduleComponentId,
userId 
)

Definition at line 569 of file registrationformsubmit.php.

updateUser ( moduleCompId,
userId 
)

Update the lastupdated date

Definition at line 609 of file registrationformsubmit.php.

verifyDate ( inputDate  ) 

Definition at line 502 of file registrationformsubmit.php.

verifyTime ( inputTime  ) 

Definition at line 548 of file registrationformsubmit.php.

verifyUserProfileFilled ( userId  ) 

Checks if the user filled his profile fully. The form id is 0.

Definition at line 635 of file registrationformsubmit.php.

verifyUserRegistered ( moduleCompId,
userId 
)

Return true if user registered, otherwise false

NOT SURE IF THIS WILL WORK. it was if(mysql_affected_rows()>0))

Definition at line 620 of file registrationformsubmit.php.