ThreadItem
A thread item
- Full name:
\Zotlabs\Lib\ThreadItem
Properties
data
template
comment_box_template
commentable
reactions
toplevel
children
parent
conversation
redirect_url
owner_url
owner_photo
owner_name
wall_to_wall
threaded
visiting
channel
display_mode
reload
mid_uuid_map
Methods
__construct
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
get_display_mode
set_display_mode
Parameters:
Parameter | Type | Description |
---|---|---|
$mode |
mixed |
is_threaded
set_reload
Parameters:
Parameter | Type | Description |
---|---|---|
$val |
mixed |
get_reload
set_commentable
Parameters:
Parameter | Type | Description |
---|---|---|
$val |
mixed |
is_commentable
add_child
Add a child item
Parameters:
Parameter | Type | Description |
---|---|---|
$item |
mixed |
get_child
Get a child by its ID
Parameters:
Parameter | Type | Description |
---|---|---|
$id |
mixed |
get_children
Get all our children
set_parent
Set our parent
Parameters:
Parameter | Type | Description |
---|---|---|
$item |
mixed |
remove_parent
Remove our parent
remove_child
Remove a child
Parameters:
Parameter | Type | Description |
---|---|---|
$item |
mixed |
get_parent
Get parent item
set_conversation
set conversation
Parameters:
Parameter | Type | Description |
---|---|---|
$conv |
mixed |
get_conversation
get conversation
get_data
Get raw data
We shouldn't need this
get_data_value
Get a data value
Returns: _ value on success _ false on failure
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed |
get_template
Get template
set_template
Parameters:
Parameter | Type | Description |
---|---|---|
$t |
mixed |
is_toplevel
Check if this is a toplevel post
count_descendants
Count the total of our descendants
count_unseen_descendants
get_comment_box_template
Get the template for the comment box
get_comment_box
Get the comment box
Returns: _ The comment box string (empty if no comment box) _ false on failure
get_redirect_url
check_wall_to_wall
Check if we are a wall to wall or announce item and set the relevant properties
is_wall_to_wall
get_owner_url
get_owner_photo
get_owner_name
is_visiting
Automatically generated on 2025-03-19