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/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

use Bitrix\Main\ORM;
use Bitrix\Socialnetwork\Item\LogIndex;

/**
 * Class LogCommentTable
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_LogComment_Query query()
 * @method static EO_LogComment_Result getByPrimary($primary, array $parameters = [])
 * @method static EO_LogComment_Result getById($id)
 * @method static EO_LogComment_Result getList(array $parameters = [])
 * @method static EO_LogComment_Entity getEntity()
 * @method static \Bitrix\Socialnetwork\EO_LogComment createObject($setDefaultValues = true)
 * @method static \Bitrix\Socialnetwork\EO_LogComment_Collection createCollection()
 * @method static \Bitrix\Socialnetwork\EO_LogComment wakeUpObject($row)
 * @method static \Bitrix\Socialnetwork\EO_LogComment_Collection wakeUpCollection($rows)
 */
class LogCommentTable extends ORM\Data\DataManager
{
	public static function getTableName()
	{
		return 'b_sonet_log_comment';
	}

	public static function getUfId()
	{
		return 'SONET_COMMENT';
	}

	public static function getMap()
	{
		$fieldsMap = array(
			'ID' => array(
				'data_type' => 'integer',
				'primary' => true,
				'autocomplete' => true,
			),
			'LOG_ID' => array(
				'data_type' => 'integer',
			),
			'LOG' => array(
				'data_type' => 'Bitrix\Socialnetwork\LogTable',
				'reference' => array('=this.LOG_ID' => 'ref.ID'),
			),
			'EVENT_ID' => array(
				'data_type' => 'string',
			),
			'USER_ID' => array(
				'data_type' => 'integer',
			),
			'MESSAGE' => array(
				'data_type' => 'text',
			),
			'SOURCE_ID' => array(
				'data_type' => 'integer',
			),
			'LOG_DATE' => array(
				'data_type' => 'datetime',
			),
			'SHARE_DEST' => array(
				'data_type' => 'string',
			),
			'RATING_TYPE_ID' => array(
				'data_type' => 'string',
			),
			'RATING_ENTITY_ID' => array(
				'data_type' => 'integer',
			),
		);

		return $fieldsMap;
	}

	public static function onAfterDelete(ORM\Event $event)
	{
		$result = new ORM\EventResult;
		$primary = $event->getParameter('primary');
		$commentId = (!empty($primary['ID']) ? (int)$primary['ID'] : 0);

		if ($commentId > 0)
		{
			LogIndex::deleteIndex(array(
				'itemType' => LogIndexTable::ITEM_TYPE_COMMENT,
				'itemId' => $commentId
			));

			LogTagTable::deleteByItem(array(
				'itemType' => LogTagTable::ITEM_TYPE_COMMENT,
				'itemId' => $commentId
			));
		}

		return $result;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit