Your IP : 3.147.48.125


Current Path : /home/bitrix/ext_www/klimatlend.ua/bitrix/modules/socialnetwork/lib/livefeed/
Upload File :
Current File : /home/bitrix/ext_www/klimatlend.ua/bitrix/modules/socialnetwork/lib/livefeed/logevent.php

<?php
namespace Bitrix\Socialnetwork\Livefeed;

final class LogEvent extends Provider
{
	const PROVIDER_ID = 'SONET_LOG';
	const TYPE = 'entry';
	const CONTENT_TYPE_ID = 'LOG_ENTRY';

	public static function getId()
	{
		return static::PROVIDER_ID;
	}

	public function getEventId()
	{
		return array('data');
	}

	public function getType()
	{
		return static::TYPE;
	}


	public static function canRead($params)
	{
		return true;
	}

	protected function getPermissions(array $post)
	{
		$result = self::PERMISSION_READ;
		return $result;
	}

	public function getCommentProvider()
	{
		$provider = new \Bitrix\Socialnetwork\Livefeed\LogComment();
		return $provider;
	}
}