Skip to content

ThreadStream

A list of threads

  • Full name: \Zotlabs\Lib\ThreadStream

Properties

threads

private $threads

mode

private $mode

observer

private $observer

writable

private $writable

commentable

private $commentable

uploadable

private $uploadable

profile_owner

private $profile_owner

preview

private $preview

prepared_item

private $prepared_item

reload

public $reload

cipher

private $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

private set_mode(mixed $mode): mixed

Parameters:

Parameter Type Description
$mode mixed

get_mode

Get mode

public get_mode(): mixed

is_writable

Check if page is writable

public is_writable(): mixed

is_commentable

public is_commentable(): mixed

is_uploadable

public is_uploadable(): mixed

is_preview

Check if page is a preview

public is_preview(): mixed

get_profile_owner

Get profile owner

public get_profile_owner(): mixed

set_profile_owner

public set_profile_owner(mixed $uid): mixed

Parameters:

Parameter Type Description
$uid mixed

get_observer

public get_observer(): mixed

get_cipher

public get_cipher(): mixed

add_thread

Add a thread to the conversation

public add_thread(mixed $item): mixed

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

public get_template_data(mixed $conv_responses, mixed $mid_uuid_map): mixed

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

private get_thread(mixed $id): mixed

Returns: _ The found item on success _ false on failure

Parameters:

Parameter Type Description
$id mixed


Automatically generated on 2025-03-19