Skip to content

ThreadItem

A thread item

  • Full name: \Zotlabs\Lib\ThreadItem

Properties

data

public $data

template

private $template

comment_box_template

private $comment_box_template

commentable

private $commentable

reactions

private $reactions

toplevel

private $toplevel

children

private $children

parent

private $parent

conversation

private $conversation

redirect_url

private $redirect_url

owner_url

private $owner_url

owner_photo

private $owner_photo

owner_name

private $owner_name

wall_to_wall

private $wall_to_wall

threaded

private $threaded

visiting

private $visiting

channel

private $channel

display_mode

private $display_mode

reload

private $reload

mid_uuid_map

private $mid_uuid_map

Methods

__construct

public __construct(mixed $data): mixed

Parameters:

Parameter Type Description
$data 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 $thread_level = 1, mixed $conv_flags = []): mixed

Returns: _ The data requested on success _ false on failure

Parameters:

Parameter Type Description
$conv_responses mixed
$mid_uuid_map mixed
$thread_level mixed
$conv_flags mixed

get_id

public get_id(): mixed

get_display_mode

public get_display_mode(): mixed

set_display_mode

public set_display_mode(mixed $mode): mixed

Parameters:

Parameter Type Description
$mode mixed

is_threaded

public is_threaded(): mixed

set_reload

public set_reload(mixed $val): mixed

Parameters:

Parameter Type Description
$val mixed

get_reload

public get_reload(): mixed

set_commentable

public set_commentable(mixed $val): mixed

Parameters:

Parameter Type Description
$val mixed

is_commentable

public is_commentable(): mixed

add_child

Add a child item

public add_child(mixed $item): mixed

Parameters:

Parameter Type Description
$item mixed

get_child

Get a child by its ID

public get_child(mixed $id): mixed

Parameters:

Parameter Type Description
$id mixed

get_children

Get all our children

public get_children(): mixed

set_parent

Set our parent

protected set_parent(mixed $item): mixed

Parameters:

Parameter Type Description
$item mixed

remove_parent

Remove our parent

protected remove_parent(): mixed

remove_child

Remove a child

public remove_child(mixed $item): mixed

Parameters:

Parameter Type Description
$item mixed

get_parent

Get parent item

protected get_parent(): mixed

set_conversation

set conversation

public set_conversation(mixed $conv): mixed

Parameters:

Parameter Type Description
$conv mixed

get_conversation

get conversation

public get_conversation(): mixed

get_data

Get raw data

public get_data(): mixed

We shouldn't need this


get_data_value

Get a data value

public get_data_value(mixed $name): mixed

Returns: _ value on success _ false on failure

Parameters:

Parameter Type Description
$name mixed

get_template

Get template

public get_template(): mixed

set_template

public set_template(mixed $t): mixed

Parameters:

Parameter Type Description
$t mixed

is_toplevel

Check if this is a toplevel post

private is_toplevel(): mixed

count_descendants

Count the total of our descendants

private count_descendants(): mixed

count_unseen_descendants

private count_unseen_descendants(): mixed

get_comment_box_template

Get the template for the comment box

private get_comment_box_template(): mixed

get_comment_box

Get the comment box

private get_comment_box(): mixed

Returns: _ The comment box string (empty if no comment box) _ false on failure


get_redirect_url

private get_redirect_url(): mixed

check_wall_to_wall

Check if we are a wall to wall or announce item and set the relevant properties

protected check_wall_to_wall(): mixed

is_wall_to_wall

private is_wall_to_wall(): mixed

get_owner_url

private get_owner_url(): mixed

get_owner_photo

private get_owner_photo(): mixed

get_owner_name

private get_owner_name(): mixed

is_visiting

private is_visiting(): mixed


Automatically generated on 2025-03-19