1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
taskinfo.php
См. документацию.
1<?php
2namespace Bitrix\Forum\Comments\Service;
3
4use Bitrix\Main\Web\Json;
5
6final class TaskInfo extends Base
7{
8 const TYPE = 'TASKINFO';
9
10 public function getType()
11 {
12 return static::TYPE;
13 }
14
15 public function getText(string $text = '', array $params = []): string
16 {
17 $result = '';
18
19 try
20 {
21 $data = Json::decode($text);
22 }
24 {
25 $data = [];
26 }
27
28 if (
29 !is_array($data)
30 || empty($data)
32 )
33 {
34 return $result;
35 }
36
38 \Bitrix\Tasks\Comments\Task\CommentPoster::getCommentText(
39 $data,
40 array_merge($params, ['mobile' => (isset($params['mobile']) && $params['mobile'] === true)])
41 )
42 );
43
44 return $result;
45 }
46
47 public function canDelete()
48 {
49 return false;
50 }
51}
getText(string $text='', array $params=[])
Определения taskinfo.php:15
static includeModule($moduleName)
Определения loader.php:67
$data['IS_AVAILABLE']
Определения .description.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
htmlspecialcharsEx($str)
Определения tools.php:2685
$text
Определения template_pdf.php:79
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799