Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
Definition
topic.php:9
Bitrix\Forum\Controller\Topic\headAction
headAction($topicId)
Definition
topic.php:10
Bitrix\Forum\Forum
Definition
forum.php:321
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Forum\Controller
Definition
topic.php:3
Bitrix\Forum
Bitrix\Main
modules
forum
lib
controller
topic.php
Создано системой
1.10.0