phpBB API Documentation
Class

phpbb\feed\topics

class topics extends topic_base

New Topics feed

This will give you the last {$this->num_items} created topics including the first post.

Properties

$sql SQL Query to be executed to get feed items
$keys Keys specified for retrieval of title, content, etc.
$num_items
$separator Separator for title elements to separate items (for example forum / topic)
$separator_stats Separator for the statistics row (Posted by, post date, replies, etc.)

Methods

__construct(helper $helper, config $config, driver_interface $db, driver_interface $cache, user $user, auth $auth, content_visibility $content_visibility, string $phpEx)

Constructor

from base
set_keys()

Set keys.

from topic_base
open()

Open feed

from attachments_base
close()

Close feed

from base
set(string $key, mixed $value)

Set key

from base
mixed get(string $key)

Get key

from base
get_readable_forums()

from base
get_moderator_approve_forums()

from base
is_moderator_approve_forum($forum_id)

from base
get_excluded_forums()

from base
is_excluded_forum($forum_id)

from base
get_passworded_forums()

from base
get_item()

from base
user_viewprofile($row)

from base
mixed get_attachments($post_id $post_id)

Get attachments related to a given post

from attachments_base
adjust_item($item_row, $row)

get_sql()

Details

in base at line 85
public __construct(helper $helper, config $config, driver_interface $db, driver_interface $cache, user $user, auth $auth, content_visibility $content_visibility, string $phpEx)

Constructor

Parameters

helper $helper Feed helper
config $config Config object
driver_interface $db Database connection
driver_interface $cache Cache object
user $user User object
auth $auth Auth object
content_visibility $content_visibility Auth object
string $phpEx php file extension

in topic_base at line 23
public set_keys()

Set keys.

in attachments_base at line 69
public open()

Open feed

in base at line 128
public close()

Close feed

in base at line 142
public set(string $key, mixed $value)

Set key

Parameters

string $key Key
mixed $value Value

in base at line 153
public mixed get(string $key)

Get key

Parameters

string $key Key

Return Value

mixed

in base at line 158
public get_readable_forums()

in base at line 170
public get_moderator_approve_forums()

in base at line 182
public is_moderator_approve_forum($forum_id)

Parameters

$forum_id

in base at line 194
public get_excluded_forums()

in base at line 221
public is_excluded_forum($forum_id)

Parameters

$forum_id

in base at line 228
public get_passworded_forums()

in base at line 233
public get_item()

in base at line 250
public user_viewprofile($row)

Parameters

$row

in attachments_base at line 81
public mixed get_attachments($post_id $post_id)

Get attachments related to a given post

Parameters

$post_id $post_id int Post id

Return Value

mixed Attachments related to $post_id

at line 80
public adjust_item($item_row, $row)

Parameters

$item_row
$row

at line 24
public get_sql()