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/catalog/lib/v2/Event/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/catalog/lib/v2/Event/Event.php
<?php

namespace Bitrix\Catalog\v2\Event;

final class Event
{
	// Option region
	private const MODULE_ID = 'Catalog';
	private const EVENT_NAME_START_WITH = 'on';

	// Entity region
	public const ENTITY_PRODUCT = 'Product';

	// Method region
	public const METHOD_UPDATE = 'Update';

	// Stage region
	public const STAGE_BEFORE = 'Before';
	public const STAGE_ON = '';
	public const STAGE_AFTER = 'After';

	public static function send(string $entity, string $method, string $stage, array $parameters): void
	{
		$eventName = Event::makeEventName($entity, $method, $stage);

		$eventHandler = new \Bitrix\Main\Event(Event::MODULE_ID, $eventName, $parameters);

		$eventHandler->send();
	}

	public static function makeEventName(string $entity, string $method, string $stage): string
	{
		return Event::EVENT_NAME_START_WITH . $stage . Event::MODULE_ID . $entity . $method;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit