ThreadStream
A list of threads
- Full name:
\Zotlabs\Lib\ThreadStream
Properties
threads
mode
observer
writable
commentable
uploadable
profile_owner
preview
prepared_item
reload
cipher
Methods
__construct
public __construct(mixed $mode, mixed $preview, mixed $uploadable, mixed $prepared_item = ''): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$mode |
mixed | |
$preview |
mixed | |
$uploadable |
mixed | |
$prepared_item |
mixed |
set_mode
Set the mode we'll be displayed on
Parameters:
Parameter | Type | Description |
---|---|---|
$mode |
mixed |
get_mode
Get mode
is_writable
Check if page is writable
is_commentable
is_uploadable
is_preview
Check if page is a preview
get_profile_owner
Get profile owner
set_profile_owner
Parameters:
Parameter | Type | Description |
---|---|---|
$uid |
mixed |
get_observer
get_cipher
add_thread
Add a thread to the conversation
Returns: _ The inserted item on success _ false on failure
Parameters:
Parameter | Type | Description |
---|---|---|
$item |
mixed |
get_template_data
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
Parameters:
Parameter | Type | Description |
---|---|---|
$conv_responses |
mixed | |
$mid_uuid_map |
mixed |
get_thread
Get a thread based on its item id
Returns: _ The found item on success _ false on failure
Parameters:
Parameter | Type | Description |
---|---|---|
$id |
mixed |
Automatically generated on 2025-03-19