FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
phpbb/phpBB/phpbb/feed/topic_base.php at develop · ForumHulp/phpbb · GitHub
ForumHulp
/
phpbb
Public
forked from
phpbb/phpbb
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
phpbb
/
phpBB
/
phpbb
/
feed
/
topic_base.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
53 lines (45 loc) · 1.79 KB
Breadcrumbs
phpbb
/
phpBB
/
phpbb
/
feed
/
topic_base.php
Copy path
File metadata and controls
53 lines (45 loc) · 1.79 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
*
* @package phpBB3
* @copyright (c) 2013 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
namespace
phpbb
\
feed
;
/**
* Abstract class for topic based feeds
*
* @package phpBB3
*/
abstract
class
topic_base
extends
\
phpbb
\
feed
\base
{
var
$
num_items
=
'
feed_limit_topic
'
;
function
set_keys
()
{
$
this
->
set
(
'
title
'
,
'
topic_title
'
);
$
this
->
set
(
'
title2
'
,
'
forum_name
'
);
$
this
->
set
(
'
author_id
'
,
'
topic_poster
'
);
$
this
->
set
(
'
creator
'
,
'
topic_first_poster_name
'
);
$
this
->
set
(
'
published
'
,
'
post_time
'
);
$
this
->
set
(
'
updated
'
,
'
post_edit_time
'
);
$
this
->
set
(
'
text
'
,
'
post_text
'
);
$
this
->
set
(
'
bitfield
'
,
'
bbcode_bitfield
'
);
$
this
->
set
(
'
bbcode_uid
'
,
'
bbcode_uid
'
);
$
this
->
set
(
'
enable_bbcode
'
,
'
enable_bbcode
'
);
$
this
->
set
(
'
enable_smilies
'
,
'
enable_smilies
'
);
$
this
->
set
(
'
enable_magic_url
'
,
'
enable_magic_url
'
);
}
function
adjust_item
(&
$
item_row
, &
$
row
)
{
$
item_row
[
'
link
'
] =
$
this
->
helper
->
append_sid
(
'
viewtopic.
'
.
$
this
->
phpEx
,
'
t=
'
.
$
row
[
'
topic_id
'
] .
'
&p=
'
.
$
row
[
'
post_id
'
] .
'
#p
'
.
$
row
[
'
post_id
'
]);
if
(
$
this
->
config
[
'
feed_item_statistics
'
])
{
$
item_row
[
'
statistics
'
] =
$
this
->
user
->
lang
[
'
POSTED
'
] .
'
'
.
$
this
->
user
->
lang
[
'
POST_BY_AUTHOR
'
] .
'
'
.
$
this
->
user_viewprofile
(
$
row
)
.
'
'
.
$
this
->
separator_stats
.
'
'
.
$
this
->
user
->
format_date
(
$
row
[
$
this
->
get
(
'
published
'
)])
.
'
'
.
$
this
->
separator_stats
.
'
'
.
$
this
->
user
->
lang
[
'
REPLIES
'
] .
'
'
.
$
this
->
content_visibility
->
get_count
(
'
topic_posts
'
,
$
row
,
$
row
[
'
forum_id
'
]) -
1
.
'
'
.
$
this
->
separator_stats
.
'
'
.
$
this
->
user
->
lang
[
'
VIEWS
'
] .
'
'
.
$
row
[
'
topic_views
'
]
. ((
$
this
->
is_moderator_approve_forum
(
$
row
[
'
forum_id
'
]) &&
$
row
[
'
topic_posts_unapproved
'
]) ?
'
'
.
$
this
->
separator_stats
.
'
'
.
$
this
->
user
->
lang
[
'
POSTS_UNAPPROVED
'
] :
''
);
}
}
}
Back
|
FazBrowse Home
|
New Git URL