%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.216.209.235 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/internals/ |
Upload File : |
<?php namespace Bitrix\Sale\Internals; use Bitrix\Main\Localization\Loc, Bitrix\Main\ORM\Data\DataManager, Bitrix\Main\ORM\Fields\IntegerField, Bitrix\Main\ORM\Fields\StringField, Bitrix\Main\ORM\Fields\TextField, Bitrix\Main\ORM\Fields\Validators\LengthValidator; Loc::loadMessages(__FILE__); /** * Class CashboxRestHandlerTable * * Fields: * <ul> * <li> ID int mandatory * <li> NAME string(255) mandatory * <li> CODE string(50) mandatory * <li> SORT int optional default 100 * <li> SETTINGS text mandatory * </ul> * * @package Bitrix\Sale * * DO NOT WRITE ANYTHING BELOW THIS * * <<< ORMENTITYANNOTATION * @method static EO_CashboxRestHandler_Query query() * @method static EO_CashboxRestHandler_Result getByPrimary($primary, array $parameters = array()) * @method static EO_CashboxRestHandler_Result getById($id) * @method static EO_CashboxRestHandler_Result getList(array $parameters = array()) * @method static EO_CashboxRestHandler_Entity getEntity() * @method static \Bitrix\Sale\Internals\EO_CashboxRestHandler createObject($setDefaultValues = true) * @method static \Bitrix\Sale\Internals\EO_CashboxRestHandler_Collection createCollection() * @method static \Bitrix\Sale\Internals\EO_CashboxRestHandler wakeUpObject($row) * @method static \Bitrix\Sale\Internals\EO_CashboxRestHandler_Collection wakeUpCollection($rows) */ class CashboxRestHandlerTable extends DataManager { /** * @inheritDoc */ public static function getTableName() { return 'b_sale_cashbox_rest_handler'; } /** * @inheritDoc */ public static function getMap() { return [ new IntegerField( 'ID', [ 'primary' => true, 'autocomplete' => true, 'title' => Loc::getMessage('CASHBOX_REST_HANDLER_ENTITY_ID_FIELD') ] ), new StringField( 'NAME', [ 'required' => true, 'validation' => [__CLASS__, 'validateName'], 'title' => Loc::getMessage('CASHBOX_REST_HANDLER_ENTITY_NAME_FIELD') ] ), new StringField( 'CODE', [ 'required' => true, 'validation' => [__CLASS__, 'validateCode'], 'title' => Loc::getMessage('CASHBOX_REST_HANDLER_ENTITY_CODE_FIELD') ] ), new IntegerField( 'SORT', [ 'default' => 100, 'title' => Loc::getMessage('CASHBOX_REST_HANDLER_ENTITY_SORT_FIELD') ] ), new TextField( 'SETTINGS', [ 'required' => true, 'title' => Loc::getMessage('CASHBOX_REST_HANDLER_ENTITY_SETTINGS_FIELD'), 'serialized' => true, ] ), new StringField('APP_ID'), ]; } /** * Returns validators for NAME field. * * @return array */ public static function validateName() { return [ new LengthValidator(null, 255), ]; } /** * Returns validators for CODE field. * * @return array */ public static function validateCode() { return [ new LengthValidator(null, 50), ]; } }