1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
topic.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Forum\Controller
;
4
5
use
Bitrix\Main
;
6
use
Bitrix\Forum
;
7
8
class
Topic
extends
Main\Engine\Controller
9
{
10
public
function
headAction
($topicId)
11
{
12
if
(($topic =
Forum
\Topic::getById($topicId)) !==
null
)
13
{
14
global
$USER
;
15
$user
= Forum\User::getById(
$USER
->GetID());
16
if
(
$user
->canReadTopic($topic))
17
{
18
return
$topic->getData();
19
}
20
}
21
return
null
;
22
}
23
}
Bitrix\Forum\Controller\Topic
Определения
topic.php:9
Bitrix\Forum\Controller\Topic\headAction
headAction($topicId)
Определения
topic.php:10
$USER
global $USER
Определения
csv_new_run.php:40
Bitrix\Forum\Controller
Определения
topic.php:3
Bitrix\Forum
Bitrix\Main\Controller
Определения
agreement.php:2
Bitrix\Main
Bitrix\Main\$user
$user
Определения
mysql_to_pgsql.php:33
bitrix
modules
forum
lib
controller
topic.php
Создано системой
1.14.0