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/trading/state/internals/ |
Upload File : |
<?php namespace Yandex\Market\Trading\State\Internals; use Yandex\Market; use Bitrix\Main; class DataTable extends Market\Reference\Storage\Table { public static function getTableName() { return 'yamarket_trading_state_data'; } public static function getMap() { return [ new Main\Entity\StringField('SERVICE', [ 'required' => true, 'primary' => true, 'validation' => [__CLASS__, 'getValidationForService'], ]), new Main\Entity\StringField('ENTITY_ID', [ 'required' => true, 'primary' => true, 'validation' => [__CLASS__, 'getValidationForEntityId'], ]), new Main\Entity\StringField('NAME', [ 'required' => true, 'primary' => true, 'validation' => [__CLASS__, 'getValidationForName'], ]), new Main\Entity\TextField('VALUE', Market\Reference\Storage\Field\FuzzySerializer::getParameters() + [ 'required' => true, ]), new Main\Entity\DatetimeField('TIMESTAMP_X', [ 'required' => true, ]), ]; } public static function getValidationForService() { return [ new Main\Entity\Validator\Length(null, 20), ]; } public static function getValidationForEntityId() { return [ new Main\Entity\Validator\Length(null, 12), ]; } public static function getValidationForName() { return [ new Main\Entity\Validator\Length(null, 60), ]; } }