Class: Thread
Source Location: /blogs/inc/messaging/model/_thread.class.php
Class Thread
Class Overview
|
Thread Class Located in /blogs/inc/messaging/model/_thread.class.php [line 33] DataObject | --ThreadAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From DataObject |
Inherited From DataObject
|
[ Top ]
Property Summary
| array | $contacts_list | Unblocked contacts IDs lazy filled |
| mixed | $datemodified | |
| integer | $num_unread_messages | Number unread messages |
| mixed | $recipients | |
| array | $recipients_list | Recipients IDs lazy filled |
| mixed | $title |
[ Top ]
Method Summary
| Thread | Thread() | Constructor |
| boolean | check_perm() | Check permission on a persona |
| true | check_thread_recipient() | Check if user is recipient of the current thread |
| void | dbdelete() | Delete thread and dependencies from database |
| contacts | load_contacts() | Load all of the non blocked contacts of current thread |
| boolean | load_from_Request() | Load data from Request form fields. |
| recipients | load_recipients() | Load recipients of the current thread |
| void | param_check__recipients() | Check are recipients available in database |
| boolean | set() | Set param value |
[ Top ]
Methods
Constructor Thread [line 65]
|
Constructor
Parameters:| db_row | $db_row: | database row |
[ Top ]
check_perm [line 299]
|
Check permission on a persona
Parameters:| $action: | ||
| $assert: |
API Tags:
| Return: | true if granted |
[ Top ]
check_thread_recipient [line 313]
|
Check if user is recipient of the current thread
Parameters:| user | $user_ID: | ID |
API Tags:
| Return: | is user is recipient, instead false |
[ Top ]
dbdelete [line 206]
|
Delete thread and dependencies from database
Redefinition of:
- DataObject::dbdelete()
- Delete object from DB.
[ Top ]
load_contacts [line 266]
|
Load all of the non blocked contacts of current thread
[ Top ]
load_from_Request [line 86]
|
Load data from Request form fields.
API Tags:
| Return: | true if loaded data seems valid. |
[ Top ]
load_recipients [line 239]
|
Load recipients of the current thread
API Tags:
| Return: | list |
[ Top ]
param_check__recipients [line 133]
|
Check are recipients available in database
Parameters:| string | $var: | recipients |
| $recipients: |
[ Top ]
set [line 114]
|
Set param value
By default, all values will be considered strings
Parameters:| string | $parname: | parameter name |
| mixed | $parvalue: | parameter value |
| boolean | $make_null: | true to set to NULL if empty value |
API Tags:
| Return: | true, if a value has been set; false if it has not changed |
Redefinition of:
- DataObject::set()
- Set param value
[ Top ]
