class tree: 68Classifieds |
index: 68Classifieds |
all elements
Constructor PrivateMessage (line 34)
countUserSentMessages (line 469)
deleteMessage (line 114)
findUserID (line 162)
getOwnerByListingID (line 246)
getUsernameBySearch (line 290)
listMessages (line 322)
listMessagesByID (line 268)
markAsNotSpam (line 96)
markAsSpam (line 77)
readMessage (line 128)
sendMessage (line 187)
updateSettings (line 51)
PrivateMessage
Description
Handles the Private Message System.
Located in /includes/classes/kernel/Private.php (line 16)
Method Summary
Methods
Constructor PrivateMessage (line 34)
Private Message Constructor
PrivateMessage
PrivateMessage
()
countUserSentMessages (line 469)
Gets the total number of sent pm's for a specific user by id
mixed
countUserSentMessages
(integer $userid)
- integer $userid
deleteMessage (line 114)
Delete a PM
void
deleteMessage
(int $pmid)
- int $pmid: The pm's unique id.
findUserID (line 162)
Find a user by name
int
findUserID
(string $name)
- string $name: A user name
getOwnerByListingID (line 246)
Get Owner from listing id.
int
getOwnerByListingID
(int $id)
- int $id: The listing id
getUsernameBySearch (line 290)
Get a username by searching
array
getUsernameBySearch
(string $username)
- string $username: The search string
listMessages (line 322)
List Messages
int
listMessages
(array $options, int $current_row)
- array $options: The search options
- int $current_row: The current row.
listMessagesByID (line 268)
Gets a list of messages for a user
array
listMessagesByID
(int $userid)
- int $userid: User ID
markAsNotSpam (line 96)
Mark a message as not spam
void
markAsNotSpam
(int $pmid, int $userid)
- int $pmid: The pm's unique id.
- int $userid: The user id reporting it.
markAsSpam (line 77)
Mark a message as spam
void
markAsSpam
(int $pmid, int $userid)
- int $pmid: The pm's unique id.
- int $userid: The user id reporting it.
readMessage (line 128)
Read a message
void
readMessage
(int $id)
- int $id: The pm's unique id.
sendMessage (line 187)
Send a PM
boolean
sendMessage
(array $data)
- array $data: The array data
updateSettings (line 51)
Updates the PM Settings
boolean
updateSettings
(array $data)
- array $data: An array of data

