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/cvetdv.ru/bitrix/modules/yandex.market/lib/ui/export/collection/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/yandex.market/lib/ui/export/collection/runform.php
<?php
namespace Yandex\Market\Ui\Export\Collection;

use Yandex\Market\Reference\Concerns;
use Yandex\Market\Ui;
use Yandex\Market\Export;
use Yandex\Market\Utils;
use Yandex\Market\Logger;

class RunForm extends Ui\Export\Reference\EntityRunForm
{
	use Concerns\HasMessage;

	protected function finishResultUrl(array $query)
	{
		return Ui\Admin\Path::getModuleUrl('collection_result', $query);
	}

	protected function entityType()
	{
		return Export\Run\Manager::ENTITY_TYPE_COLLECTION;
	}

	protected function logEntityTypes()
	{
		return [
			Logger\Table::ENTITY_TYPE_EXPORT_RUN_COLLECTION,
		];
	}

	protected function getTabControlId()
	{
		return 'YANDEX_MARKET_ADMIN_COLLECTION_RUN';
	}

	protected function models(array $ids = null)
	{
		$filter = $this->idsFilter($ids);

		if ($filter === null) { return []; }

		$models = Export\Collection\Model::loadList([ 'filter' => $filter ]);
		$modelsMapped = [];

		foreach ($models as $model)
		{
			$modelsMapped[$model->getId()] = $model;
		}

		return $modelsMapped;
	}

	protected function exported(array $ids = null)
	{
		$filter = $this->idsFilter($ids, 'COLLECTION_ID');

		if ($filter === null) { return []; }

		$query = Export\Run\Storage\CollectionTable::getList([
			'filter' =>
				$filter
				+ [ '=STATUS' => Export\Run\Steps\Promo::STORAGE_STATUS_SUCCESS ],
			'select' => [ 'COLLECTION_ID', 'SETUP_ID' ],
			'group' => [ 'COLLECTION_ID', 'SETUP_ID' ],
		]);

		return Utils\ArrayHelper::groupBy($query->fetchAll(), 'COLLECTION_ID');
	}

	protected function linked($entityId)
	{
		$query = Export\Collection\Internals\SetupLinkTable::getList([
			'filter' => [ '=COLLECTION_ID' => $entityId ],
			'select' => [ 'SETUP_ID' ],
		]);

		return array_column($query->fetchAll(), 'SETUP_ID', 'SETUP_ID');
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit