|  | The Red Matrix
    | 
 
  
 | Public Member Functions | |
| __construct ($mode, $preview) | |
| get_mode () | |
| is_writable () | |
| is_preview () | |
| get_profile_owner () | |
| set_profile_owner ($uid) | |
| add_thread ($item) | |
| get_template_data ($alike, $dlike) | |
|  Public Member Functions inherited from BaseObject | |
| get_app () | |
| Private Member Functions | |
| set_mode ($mode) | |
| get_thread ($id) | |
| Private Attributes | |
| $threads = array() | |
| $mode = null | |
| $writable = false | |
| $profile_owner = 0 | |
| $preview = false | |
| Additional Inherited Members | |
|  Static Public Member Functions inherited from BaseObject | |
| static | set_app ($app) | 
A list of threads
We should think about making this a SPL Iterator
| Conversation::__construct | ( | $mode, | |
| $preview | |||
| ) | 
| Conversation::add_thread | ( | $item | ) | 
Add a thread to the conversation
Returns: _ The inserted item on success _ false on failure
| Conversation::get_mode | ( | ) | 
Get mode
Referenced by set_mode(), and set_profile_owner().
| Conversation::get_profile_owner | ( | ) | 
Get profile owner
| Conversation::get_template_data | ( | $alike, | |
| $dlike | |||
| ) | 
Get data in a form usable by a conversation template
We should find a way to avoid using those arguments (at least most of them)
Returns: _ The data requested on success _ false on failure
| 
 | private | 
Get a thread based on its item id
Returns: _ The found item on success _ false on failure
Referenced by add_thread().
| Conversation::is_preview | ( | ) | 
Check if page is a preview
| Conversation::is_writable | ( | ) | 
Check if page is writable
| 
 | private | 
Set the mode we'll be displayed on
Referenced by __construct(), and set_profile_owner().
| Conversation::set_profile_owner | ( | $uid | ) | 
| 
 | private | 
Referenced by __construct(), get_mode(), set_mode(), and set_profile_owner().
| 
 | private | 
Referenced by __construct(), and is_preview().
| 
 | private | 
Referenced by get_profile_owner().
| 
 | private | 
| 
 | private | 
Referenced by is_writable().