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/catalog/run/storage/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/yandex.market/lib/catalog/run/storage/queue.php
<?php
namespace Yandex\Market\Catalog\Run\Storage;

use Bitrix\Main;
use Yandex\Market\Reference;
use Yandex\Market\Reference\Storage\Field;
use Yandex\Market\Catalog;

class QueueTable extends Reference\Storage\Table
{
    const STATUS_WAIT = 'W';
    const STATUS_SUCCESS = 'S';
    const STATUS_MISSING = 'M';
    const STATUS_ERROR = 'E';

    public static function getTableName()
    {
        return 'yamarket_catalog_run_queue';
    }

    public static function createIndexes(Main\DB\Connection $connection)
    {
        $tableName = static::getTableName();

        $connection->createIndex($tableName, 'IX_' . $tableName . '_1', [ 'STATUS', 'PRIORITY' ]);
    }

    public static function getMap()
    {
        return [
            new Main\Entity\IntegerField('CATALOG_ID', [
                'primary' => true,
            ]),
            new Main\Entity\StringField('SKU', [
                'primary' => true,
                'validation' => function() {
                    return [ new Main\Entity\Validator\Length(1, 255) ];
                },
            ]),
            new Main\Entity\EnumField('ENDPOINT', [
                'primary' => true,
                'values' => [
                    Catalog\Glossary::ENDPOINT_OFFER,
                    Catalog\Glossary::ENDPOINT_STOCKS,
                    Catalog\Glossary::ENDPOINT_PRICE,
                    Catalog\Glossary::ENDPOINT_TERMS,
                    Catalog\Glossary::ENDPOINT_ARCHIVE,
                ],
            ]),
            new Main\Entity\IntegerField('CAMPAIGN_ID', [
                'primary' => true,
            ]),
            new Main\Entity\EnumField('STATUS', [
                'required' => true,
                'values' => [
                    self::STATUS_WAIT,
                    self::STATUS_SUCCESS,
                    self::STATUS_ERROR,
                    self::STATUS_MISSING,
                ],
            ]),
            new Main\Entity\TextField('PAYLOAD', Field\JsonSerializer::getParameters() + [
                'required' => true,
	            'long' => true,
            ]),
            new Main\Entity\TextField('PREPARED', Field\JsonSerializer::getParameters(true) + [
                'nullable' => true,
	            'long' => true,
            ]),
            new Main\Entity\IntegerField('PRIORITY', [
                'required' => true,
            ]),
            new Reference\Storage\Field\CanonicalDateTime('TIMESTAMP_X', [
                'required' => true,
            ]),

	        new Main\Entity\ReferenceField('ASSORTMENT', AssortmentTable::class, [
		        '=this.CATALOG_ID' => 'ref.CATALOG_ID',
		        '=this.SKU' => 'ref.SKU',
	        ]),
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit