1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
logcomment.php
См. документацию.
1<?php
8namespace Bitrix\Socialnetwork\Item;
9
10use Bitrix\Socialnetwork\LogCommentTable;
11
13{
14 private $fields;
15
16 public static function getById($logCommentId = 0)
17 {
18 static $cachedFields = array();
19
20 $logCommentItem = false;
21 $logCommentId = intval($logCommentId);
22
23 if ($logCommentId > 0)
24 {
25 $logCommentItem = new LogComment;
26 $logCommentFields = array();
27
28 if (isset($cachedFields[$logCommentId]))
29 {
30 $logCommentFields = $cachedFields[$logCommentId];
31 }
32 else
33 {
34 $select = array('*');
35
37 'filter' => array('=ID' => $logCommentId),
38 'select' => $select
39 ));
40 if ($fields = $res->fetch())
41 {
42 $logCommentFields = $fields;
43
44 if ($logCommentFields['LOG_DATE'] instanceof \Bitrix\Main\Type\DateTime)
45 {
46 $logCommentFields['LOG_DATE'] = $logCommentFields['LOG_DATE']->toString();
47 }
48 }
49
50 $cachedFields[$logCommentId] = $logCommentFields;
51 }
52
53 $logCommentItem->setFields($logCommentFields);
54 }
55
56 return $logCommentItem;
57 }
58
59 public function setFields($fields = array())
60 {
61 $this->fields = $fields;
62 }
63
64 public function getFields()
65 {
66 return $this->fields;
67 }
68}
static getList(array $parameters=array())
Определения datamanager.php:431
setFields($fields=array())
Определения logcomment.php:59
static getById($logCommentId=0)
Определения logcomment.php:16
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$res
Определения filter_act.php:7
$select
Определения iblock_catalog_list.php:194
Определения collection.php:2
$fields
Определения yandex_run.php:501