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/calendar/lib/core/mappers/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/calendar/lib/core/mappers/factory.php
<?php

namespace Bitrix\Calendar\Core\Mappers;

class Factory
{
	private static ?Section $sectionInstance = null;
	private static ?Event $eventInstance = null;
	private static ?SectionConnection $sectionConnectionInstance = null;
	private static ?EventConnection $eventConnectionInstance = null;
	private static ?SyncEvent $syncEventInstance = null;
	private static ?Connection $connectionInstance = null;
	private static ?EventOption $eventOptionInstance = null;
	private static ?EventCategory $eventCategoryInstance = null;

	public function getSection(): Section
	{
		if (!self::$sectionInstance)
		{
			self::$sectionInstance = new Section();
		}

		return self::$sectionInstance;
	}


	public function getEvent(): Event
	{
		if (!self::$eventInstance)
		{
			self::$eventInstance = new Event();
		}

		return self::$eventInstance;
	}

	public function getSectionConnection(): SectionConnection
	{
		if (!self::$sectionConnectionInstance)
		{
			self::$sectionConnectionInstance = new SectionConnection();
		}

		return self::$sectionConnectionInstance;
	}


	public function getEventConnection(): EventConnection
	{
		if (!self::$eventConnectionInstance)
		{
			self::$eventConnectionInstance = new EventConnection();
		}

		return self::$eventConnectionInstance;
	}

	public function getSyncEvent(): SyncEvent
	{
		if (!self::$syncEventInstance)
		{
			self::$syncEventInstance = new SyncEvent();
		}

		return self::$syncEventInstance;
	}

	public function getConnection(): Connection
	{
		if (!self::$connectionInstance)
		{
			self::$connectionInstance = new Connection();
		}

		return self::$connectionInstance;
	}

	public function getEventOption(): EventOption
	{
		if (!self::$eventOptionInstance)
		{
			self::$eventOptionInstance = new EventOption();
		}

		return self::$eventOptionInstance;
	}

	public function getEventCategory(): EventCategory
	{
		if (!self::$eventCategoryInstance)
		{
			self::$eventCategoryInstance = new EventCategory();
		}

		return self::$eventCategoryInstance;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit