[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

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

(no description)

File Size: 730 lines (24 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Users_Record_Model:: (44 methods):
  get()
  set()
  getDetailViewUrl()
  getPreferenceDetailViewUrl()
  getProfileUrl()
  getEditViewUrl()
  getPreferenceEditViewUrl()
  getDeleteUrl()
  isAdminUser()
  getModuleName()
  save()
  getHomePageComponents()
  getCurrentUserModel()
  getInstanceFromUserObject()
  getAll()
  getSubordinateUsers()
  getParentRoleSequence()
  getRole()
  getAccessibleUsersForModule()
  getAccessibleGroupForModule()
  getImageDetails()
  getAccessibleUsers()
  getSameLevelUsersWithSubordinates()
  getRoleBasedSubordinateUsers()
  getAllUsersOnRoles()
  getAccessibleGroups()
  getPrivileges()
  getActivityView()
  deleteImage()
  getDayStartsPicklistValues()
  getTagCloudStatus()
  saveTagCloud()
  getUserGroups()
  getCurrentUserActivityReminderInSeconds()
  getCount()
  getDuplicateRecordUrl()
  getInstanceByName()
  delete()
  isAccountOwner()
  getActiveAdminUsers()
  isFirstTimeLogin()
  getUserHash()
  deleteUserPermanently()
  getDisplayName()


Class: Users_Record_Model  - X-Ref

get($key)   X-Ref
Gets the value of the key . First it will check whether specified key is a property if not it
will get from normal data attribure from base class

param: <string> $key - property or key name
return: <object>

set($key, $value)   X-Ref
Sets the value of the key . First it will check whether specified key is a property if not it
will set from normal set from base class

param: <string> $key - property or key name
param: <string> $value

getDetailViewUrl()   X-Ref
Function to get the Detail View url for the record

return: <String> - Record Detail View Url

getPreferenceDetailViewUrl()   X-Ref
Function to get the Detail View url for the Preferences page

return: <String> - Record Detail View Url

getProfileUrl()   X-Ref
Function to get the url for the Profile page

return: <String> - Profile Url

getEditViewUrl()   X-Ref
Function to get the Edit View url for the record

return: <String> - Record Edit View Url

getPreferenceEditViewUrl()   X-Ref
Function to get the Edit View url for the Preferences page

return: <String> - Record Detail View Url

getDeleteUrl()   X-Ref
Function to get the Delete Action url for the record

return: <String> - Record Delete Action Url

isAdminUser()   X-Ref
Function to check whether the user is an Admin user

return: <Boolean> true/false

getModuleName()   X-Ref
Function to get the module name

return: <String> Module Name

save()   X-Ref
Function to save the current Record Model


getHomePageComponents()   X-Ref
Function to get all the Home Page components list

return: <Array> List of the Home Page components

getCurrentUserModel()   X-Ref
Static Function to get the instance of the User Record model for the current user

return: Users_Record_Model instance

getInstanceFromUserObject($userObject)   X-Ref
Static Function to get the instance of the User Record model from the given Users object

return: Users_Record_Model instance

getAll($onlyActive=true)   X-Ref
Static Function to get the instance of all the User Record models

return: <Array> - List of Users_Record_Model instances

getSubordinateUsers()   X-Ref
Function returns the Subordinate users

return: <Array>

getParentRoleSequence()   X-Ref
Function returns the Users Parent Role

return: <String>

getRole()   X-Ref
Function returns the Users Current Role

return: <String>

getAccessibleUsersForModule($module)   X-Ref
Function returns List of Accessible Users for a Module

param: <String> $module
return: <Array of Users_Record_Model>

getAccessibleGroupForModule($module)   X-Ref
Function returns List of Accessible Users for a Module

param: <String> $module
return: <Array of Users_Record_Model>

getImageDetails()   X-Ref
Function to get Images Data

return: <Array> list of Image names and paths

getAccessibleUsers($private="",$module = false)   X-Ref
Function to get all the accessible users

return: <Array>

getSameLevelUsersWithSubordinates()   X-Ref
Function to get same level and subordinates Users

return: <array> Users

getRoleBasedSubordinateUsers()   X-Ref
Function to get subordinates Users

return: <array> Users

getAllUsersOnRoles($roles)   X-Ref
Function to get the users based on Roles

param: type $roles
return: <array>

getAccessibleGroups($private="",$module = false)   X-Ref
Function to get all the accessible groups

return: <Array>

getPrivileges()   X-Ref
Function to get privillage model

return: $privillage model

getActivityView()   X-Ref
Function to get user default activity view

return: <String>

deleteImage($imageId)   X-Ref
Function to delete corresponding image

param: <type> $imageId

getDayStartsPicklistValues($stucturedValues)   X-Ref
Function to get the Day Starts picklist values

param: type $name Description

getTagCloudStatus()   X-Ref
Function returns if tag cloud is enabled or not


saveTagCloud()   X-Ref
Function saves tag cloud


getUserGroups($userId)   X-Ref
Function to get user groups

param: type $userId
return: <array> - groupId's

getCurrentUserActivityReminderInSeconds()   X-Ref
Function returns the users activity reminder in seconds

return: string

getCount($onlyActive = false)   X-Ref
Function to get the users count

param: <Boolean> $onlyActive - If true it returns count of only acive users else only inactive users
return: <Integer> number of users

getDuplicateRecordUrl()   X-Ref
Funtion to get Duplicate Record Url

return: <String>

getInstanceByName($userName)   X-Ref
Function to get instance of user model by name

param: <String> $userName
return: <Users_Record_Model>

delete()   X-Ref
Function to delete the current Record Model


isAccountOwner()   X-Ref
No description

getActiveAdminUsers()   X-Ref
No description

isFirstTimeLogin($userId)   X-Ref
No description

getUserHash()   X-Ref
Function to get the user hash

param: type $userId
return: boolean

deleteUserPermanently($userId, $newOwnerId)   X-Ref
No description

getDisplayName()   X-Ref
Function to get the Display Name for the record

return: <String> - Entity Display Name for the record



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