Users
Users class handles everything for the users.
Located in /includes/classes/kernel/Users.php (line 16)
Constructor Users (line 115)
Constructor, init is used to load the template object
- boolean $init
appendUserData (line 544)
Appends data to the _userData var and overrights existing values by default.
- array $data
- boolean $overWrite
banUser (line 783)
Ban A User
- integer $id: userid
deleteUser (line 745)
Delete a user
- integer $id: userid
formValidation (line 927)
Create javascript for form validation.
- boolean $modify
getAllUsers (line 195)
Gets all users by the parameters.
- array $options: sort params
- integer $page: current page #
- booleen $csv: true - removes paging
getAllUsersForSelect (line 144)
Get all users for a select list
getCountries (line 715)
Get an array of the countries
getNumberOfListingsByUserID (line 674)
Get the number of listings for a specific user
- int $id: User id.
getPairs (line 160)
Get user id/username pairs - generally used for select boxes
getSearchWhere (line 255)
Processes $_REQUEST data for the where clause of sql statment in getAllUsers.
getSortField (line 314)
Get sort field, must have setOptions before using this method. Additionally, $_REQUEST and $_COOKIE are evaluated.
getSortFieldCookie (line 441)
Get the value of the sort field cookie
getSortOrder (line 341)
Get sort order, must have setOptions before using this method. Additionally, $_REQUEST and $_COOKIE are evaluated.
getSortOrderCookie (line 478)
Get the value of the sort order cookie
getStates (line 730)
Get an array of the states
getUser (line 620)
Get a single user
- integer $id
- $assign
getUserByUsername (line 648)
Get user data by username
- string $username
getUserGroupsList (line 690)
Get an array of the user groups ordered by id.
getUserNameById (line 812)
Gets a users name by their id.
- integer $id: userid
getUserNotes (line 838)
Get a users notes.
- integer $id: userid.
setOptions (line 299)
Used to store options for use in other methods. This is used by getAllUsers.
- array $options
setSortField (line 366)
Filters/validates sort field against switch statement and set $_sortField to the proper value.
- string $field
setSortFieldCookieName (line 416)
Sets the cookie name for the sort field
- string $name
setSortOrder (line 397)
Validates/Filters the sort order and sets its oppostite value
- string $order
setSortOrderCookieName (line 453)
Sets the cookie name for the sort order
- string $name
setUserData (line 530)
Sets the user data, mainly used incase of extension
- array $userData
updateSortFieldCookie (line 429)
Overwrites/sets the sort field cookie
- string $field
updateSortOrderCookie (line 466)
Overwrites/sets the sort order cookie
- string $field
- $order
updateUserDetails (line 910)
Edit a user.
- array $data
- boolean $usermodify: Not used.
_adminGetUserNotes (line 859)
Gets the users notes for admin review
- integer $id: userid
_userGetUserNotes (line 883)
Gets the users notes for the user's review
- integer $id: userid

