Namespaces | Functions

cms/profile.lib.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

 isProfileFormCaptchaEnabled ()
 profile ($userId, $forEditRegistrant=false)
 getProfileForm ($userId, $userName, $userFullname, $forEditRegistrant=false)
 getProfileFormEditForm ()
 deleteUserAccount ($userId)
 getProfileViewRegistrantsForm ()
 getProfileRegistrantsList ($showEditButtons=false)
 getProfileForms ($userId)
 getProfileGroupsAndFormsList ($userId)
 getProfileNewsletterList ($userId)

Function Documentation

deleteUserAccount ( userId  ) 

$deleteQuery = 'DELETE FROM `' . MYSQL_DATABASE_PREFIX . 'users` WHERE `user_id` = ' . $userId;

Definition at line 365 of file profile.lib.php.

getProfileForm ( userId,
userName,
userFullname,
forEditRegistrant = false 
)

Definition at line 148 of file profile.lib.php.

getProfileFormEditForm (  ) 

$_GET['subsubaction'] would be set to editprofileform whenever this function is called Check $_GET['subaction'] to determine whether something must be done to the profile form if there is no subaction, and a $_POST['submittedform_desc'] is set, submit the profile form

Definition at line 323 of file profile.lib.php.

getProfileForms ( userId  ) 

Definition at line 447 of file profile.lib.php.

getProfileGroupsAndFormsList ( userId  ) 

Definition at line 466 of file profile.lib.php.

getProfileNewsletterList ( userId  ) 

Definition at line 504 of file profile.lib.php.

getProfileRegistrantsList ( showEditButtons = false  ) 

Definition at line 385 of file profile.lib.php.

getProfileViewRegistrantsForm (  ) 

Definition at line 370 of file profile.lib.php.

isProfileFormCaptchaEnabled (  ) 

Definition at line 19 of file profile.lib.php.

profile ( userId,
forEditRegistrant = false 
)

Retrieve existing information

Check if the user is trying to see the profile form, or has already submitted it

Definition at line 29 of file profile.lib.php.