[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/modules/Users/ -> Users.php (summary)

(no description)

File Size: 1796 lines (73 kb)
Included or required: 57 times
Referenced: 0 times
Includes or requires: 14 files
 modules/Users/CreateUserPrivilegeFile.php
 modules/Users/UserTimeZonesArray.php
 include/utils/CommonUtils.php
 includes/runtime/Cache.php
 data/Tracker.php
 include/Webservices/Utils.php
 include/events/include.inc
 include/logging.php
 include/utils/UserInfoUtil.php
 modules/Contacts/Contacts.php
 include/database/PearDatabase.php
 data/CRMEntity.php
 include/utils/encryption.php
 modules/Calendar/Activity.php

Defines 2 classes

Users:: (52 methods):
  Users()
  getSortOrder()
  getOrderBy()
  setPreference()
  savePreferecesToDB()
  loadPreferencesFromDB()
  get_user_hash()
  encrypt_password()
  authenticate_user()
  validation_check()
  authorization_check()
  doLogin()
  load_user()
  get_user_crypt_type()
  change_password()
  de_cryption()
  changepassword()
  verifyPassword()
  is_authenticated()
  retrieve_user_id()
  verify_data()
  getColumnNames_User()
  fill_in_additional_list_fields()
  fill_in_additional_detail_fields()
  retrieveCurrentUserInfoFromFile()
  saveentity()
  createAccessKey()
  insertIntoEntityTable()
  insertIntoAttachment()
  retrieve_entity_info()
  uploadAndSaveFile()
  save()
  getHomeStuffOrder()
  getDefaultHomeModuleVisibility()
  insertUserdetails()
  saveHomeStuffOrder()
  track_view()
  get_column_value()
  resetReminderInterval()
  initSortByField()
  filterInactiveFields()
  deleteImage()
  trash()
  transformOwnerShipAndDelete()
  mark_deleted()
  getActiveAdminId()
  getActiveAdminUser()
  setUserPreferences()
  uploadOrgLogo()
  updateBaseCurrency()
  updateConfigFile()
  triggerAfterSaveEventHandlers()

Users_CRMSetup:: (4 methods):
  isFirstUser()
  insertEntryIntoCRMSetup()
  getUserSetupStatus()
  getPackagesList()


Class: Users  - X-Ref

Users()   X-Ref


getSortOrder()   X-Ref
Function to get sort order
return string  $sorder    - sortorder string either 'ASC' or 'DESC'


getOrderBy()   X-Ref
Function to get order by
return string  $order_by    - fieldname(eg: 'subject')


setPreference($name, $value)   X-Ref
No description

savePreferecesToDB()   X-Ref
No description

loadPreferencesFromDB($value)   X-Ref
No description

get_user_hash($input)   X-Ref
No description

encrypt_password($user_password, $crypt_type='')   X-Ref

param: string $user_name - Must be non null and at least 2 characters
param: string $user_password - Must be non null and at least 1 character.
return: string encrypted password for storage in DB and comparison against DB password.

authenticate_user($password)   X-Ref
No description

validation_check($validate, $md5, $alt='')   X-Ref
No description

authorization_check($validate, $authkey, $i)   X-Ref
No description

doLogin($user_password)   X-Ref
Checks the config.php AUTHCFG value for login type and forks off to the proper module

param: string $user_password - The password of the user to authenticate
return: true if the user is authenticated, false otherwise

load_user($user_password)   X-Ref
Load a user based on the user_name in $this

return: -- this if load was successul and null if load failed.

get_user_crypt_type()   X-Ref
Get crypt type to use for password for the user.
Fix for: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4923


change_password($user_password, $new_password, $dieOnError = true)   X-Ref

param: string $user name - Must be non null and at least 1 character.
param: string $user_password - Must be non null and at least 1 character.
param: string $new_password - Must be non null and at least 1 character.
return: boolean - If passwords pass verification and query succeeds, return true, else return false.

de_cryption($data)   X-Ref
No description

changepassword($newpassword)   X-Ref
No description

verifyPassword($password)   X-Ref
No description

is_authenticated()   X-Ref
No description

retrieve_user_id($user_name)   X-Ref
No description

verify_data()   X-Ref

return: -- returns a list of all users in the system.

getColumnNames_User()   X-Ref
No description

fill_in_additional_list_fields()   X-Ref
No description

fill_in_additional_detail_fields()   X-Ref
No description

retrieveCurrentUserInfoFromFile($userid)   X-Ref
No description

saveentity($module)   X-Ref
No description

createAccessKey()   X-Ref
No description

insertIntoEntityTable($table_name, $module)   X-Ref
No description

insertIntoAttachment($id,$module)   X-Ref
No description

retrieve_entity_info($record, $module)   X-Ref
No description

uploadAndSaveFile($id,$module,$file_details)   X-Ref
No description

save($module_name)   X-Ref
No description

getHomeStuffOrder($id)   X-Ref
gives the order in which the modules have to be displayed in the home page for the specified user id

returns: the customized home page order in $return_array
param: $id -- user id:: Type integer

getDefaultHomeModuleVisibility($home_string,$inVal)   X-Ref
No description

insertUserdetails($inVal)   X-Ref
No description

saveHomeStuffOrder($id)   X-Ref
No description

track_view($user_id, $current_module,$id='')   X-Ref
Track the viewing of a detail record.  This leverages get_summary_text() which is object specific
params $user_id - The user that is viewing the record.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
All Rights Reserved..
Contributor(s): ______________________________________..


get_column_value($columname, $fldvalue, $fieldname, $uitype, $datatype)   X-Ref
Function to get the column value of a field

param: $column_name -- Column name
param: $input_value -- Input value for the column taken from the User
return: Column value of the field.

resetReminderInterval($prev_reminder_interval)   X-Ref
Function to reset the Reminder Interval setup and update the time for next reminder interval

param: $prev_reminder_interval -- Last Reminder Interval on which the reminder popup's were triggered.

initSortByField($module)   X-Ref
No description

filterInactiveFields($module)   X-Ref
No description

deleteImage()   X-Ref
No description

trash($module, $id)   X-Ref
No description

transformOwnerShipAndDelete($userId,$transformToUserId)   X-Ref
No description

mark_deleted($id)   X-Ref
This function should be overridden in each module.  It marks an item as deleted.

param: <type> $id

getActiveAdminId()   X-Ref
Function to get the user if of the active admin user.

return: Integer - Active Admin User ID

getActiveAdminUser()   X-Ref
Function to get the active admin user object

return: Users - Active Admin User Instance

setUserPreferences($requestArray)   X-Ref
Function to set the user time zone and language

param: - $_REQUEST array

uploadOrgLogo($requestArray, $fileArray)   X-Ref
Function to set the Company Logo

param: - $_REQUEST array
param: - $_FILE array

updateBaseCurrency($requestArray)   X-Ref
Function to update Base Currency of Product

param: - $_REQUEST array

updateConfigFile($requestArray)   X-Ref
Function to update Config file

param: - $_REQUEST array

triggerAfterSaveEventHandlers()   X-Ref
No description

Class: Users_CRMSetup  - X-Ref

isFirstUser($user)   X-Ref
Function to get user setup status

param: - User id
return: -is First User or not

insertEntryIntoCRMSetup($id)   X-Ref
Function to get user setup status

return: -is First User or not

getUserSetupStatus($id)   X-Ref
Function to get user setup status

param: - User id
return: -Setup Status of user

getPackagesList()   X-Ref
Function to get packages list from CRM

return: <Array> List of packages



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1