403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/socialnetwork/lib/item/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/socialnetwork/lib/item/logcomment.php
<?php
/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage socialnetwork
 * @copyright 2001-2017 Bitrix
 */
namespace Bitrix\Socialnetwork\Item;

use Bitrix\Socialnetwork\LogCommentTable;

class LogComment
{
	private $fields;

	public static function getById($logCommentId = 0)
	{
		static $cachedFields = array();

		$logCommentItem = false;
		$logCommentId = intval($logCommentId);

		if ($logCommentId > 0)
		{
			$logCommentItem = new LogComment;
			$logCommentFields = array();

			if (isset($cachedFields[$logCommentId]))
			{
				$logCommentFields = $cachedFields[$logCommentId];
			}
			else
			{
				$select = array('*');

				$res = LogCommentTable::getList(array(
					'filter' => array('=ID' => $logCommentId),
					'select' => $select
				));
				if ($fields = $res->fetch())
				{
					$logCommentFields = $fields;

					if ($logCommentFields['LOG_DATE'] instanceof \Bitrix\Main\Type\DateTime)
					{
						$logCommentFields['LOG_DATE'] = $logCommentFields['LOG_DATE']->toString();
					}
				}

				$cachedFields[$logCommentId] = $logCommentFields;
			}

			$logCommentItem->setFields($logCommentFields);
		}

		return $logCommentItem;
	}

	public function setFields($fields = array())
	{
		$this->fields = $fields;
	}

	public function getFields()
	{
		return $this->fields;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit