%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.145.10.49 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 /** * Bitrix Framework * @package bitrix * @subpackage sale * @copyright 2001-2012 Bitrix */ namespace Bitrix\Sale\Internals; use Bitrix\Main; use Bitrix\Main\Localization\Loc; Loc::loadMessages(__FILE__); /** * Class PaySystemServiceTable * * DO NOT WRITE ANYTHING BELOW THIS * * <<< ORMENTITYANNOTATION * @method static EO_PaySystemService_Query query() * @method static EO_PaySystemService_Result getByPrimary($primary, array $parameters = array()) * @method static EO_PaySystemService_Result getById($id) * @method static EO_PaySystemService_Result getList(array $parameters = array()) * @method static EO_PaySystemService_Entity getEntity() * @method static \Bitrix\Sale\Internals\EO_PaySystemService createObject($setDefaultValues = true) * @method static \Bitrix\Sale\Internals\EO_PaySystemService_Collection createCollection() * @method static \Bitrix\Sale\Internals\EO_PaySystemService wakeUpObject($row) * @method static \Bitrix\Sale\Internals\EO_PaySystemService_Collection wakeUpCollection($rows) */ class PaySystemServiceTable extends Main\Entity\DataManager { public static function getTableName() { return 'b_sale_pay_system'; } public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, 'title' => Loc::getMessage('PAY_SYSTEM_ENTITY_ID_FIELD'), ), 'LID' => array( 'data_type' => 'string', 'validation' => array(__CLASS__, 'validateLid'), 'title' => Loc::getMessage('PAY_SYSTEM_ENTITY_LID_FIELD'), ), 'CURRENCY' => array( 'data_type' => 'string', 'validation' => array(__CLASS__, 'validateCurrency'), 'title' => Loc::getMessage('PAY_SYSTEM_ENTITY_CURRENCY_FIELD'), ), 'NAME' => array( 'data_type' => 'string', 'required' => true, 'validation' => array(__CLASS__, 'validateName'), 'title' => Loc::getMessage('PAY_SYSTEM_ENTITY_NAME_FIELD'), ), 'ACTIVE' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), 'title' => Loc::getMessage('PAY_SYSTEM_ENTITY_ACTIVE_FIELD'), ), 'ALLOW_EDIT_PAYMENT' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), 'title' => Loc::getMessage('PAY_SYSTEM_ENTITY_ALLOW_EDIT_PAYMENT_FIELD'), ), 'SORT' => array( 'data_type' => 'integer', 'title' => Loc::getMessage('PAY_SYSTEM_ENTITY_SORT_FIELD'), ), 'DESCRIPTION' => array( 'data_type' => 'string', 'validation' => array(__CLASS__, 'validateDescription'), 'title' => Loc::getMessage('PAY_SYSTEM_ENTITY_DESCRIPTION_FIELD'), ), 'ACTION' => array( 'data_type' => 'Bitrix\Sale\Internals\PaySystemActionTable', 'reference' => array('=this.ID' => 'ref.PAY_SYSTEM_ID') ), ); } /** * Returns validators for LID field. * * @return array */ public static function validateLid() { return array( new Entity\Validator\Length(null, 2), ); } /** * Returns validators for CURRENCY field. * * @return array */ public static function validateCurrency() { return array( new Entity\Validator\Length(null, 3), ); } /** * Returns validators for NAME field. * * @return array */ public static function validateName() { return array( new Entity\Validator\Length(null, 255), ); } /** * Returns validators for DESCRIPTION field. * * @return array */ public static function validateDescription() { return array( new Entity\Validator\Length(null, 2000), ); } public static function getListWithInner(array $parameters = array()) { if(isset($parameters['filter'])) { $parameters['filter'] = array( 'LOGIC' => 'OR', $parameters['filter'], array( 'ID' => \Bitrix\Sale\PaySystem\Manager::getInnerPaySystemId() ) ); } return parent::getList($parameters); } }