1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
entitycreated.php
См. документацию.
1<?php
2
3namespace Bitrix\Forum\Comments\Service;
4
5use Bitrix\Main\Loader;
6use Bitrix\Main\Web\Json;
7use Bitrix\Socialnetwork\CommentAux;
8
9class EntityCreated extends Base
10{
11 const TYPE = 'CREATEENTITY';
12
13 public function getType(): string
14 {
15 return static::TYPE;
16 }
17
18 public function getText(string $text = '', array $params = []): string
19 {
20 $result = '';
21
22 try
23 {
24 $data = Json::decode($text);
25 }
27 {
28 $data = [];
29 }
30
31 if (
32 !is_array($data)
33 || empty($data)
34 || !Loader::includeModule('socialnetwork')
35 )
36 {
37 return $result;
38 }
39
40 $options = [];
41 if (isset($params['suffix']))
42 {
43 $options['suffix'] = $params['suffix'];
44 }
45
46 $socNetProvider = CommentAux\Base::init($this->getSocnetType(), $data, $options);
47 $result = $socNetProvider->getText();
48
49 return $result;
50 }
51
52 public function canDelete(): bool
53 {
54 return false;
55 }
56
57 protected function getSocnetType(): string
58 {
60 }
61}
getText(string $text='', array $params=[])
Определения entitycreated.php:18
static includeModule($moduleName)
Определения loader.php:67
$options
Определения commerceml2.php:49
$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
$text
Определения template_pdf.php:79
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799