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/rospirotorg.ru/bitrix/modules/esol.importexportexcel/lib/ |
Upload File : |
<?php namespace Bitrix\KdaImportexcel; use Bitrix\Main\Entity; use Bitrix\Main\Localization\Loc; Loc::loadMessages(__FILE__); /** * Class ProfileTable * * Fields: * <ul> * <li> ID int mandatory * <li> NAME string(255) mandatory * <li> PARAMS string optional * <li> DATE_START datetime optional * <li> SORT int optional default 500 * </ul> * * @package Bitrix\KdaImportexcel **/ class ProfileTable extends Entity\DataManager { /** * Returns path to the file which contains definition of the class. * * @return string */ public static function getFilePath() { return __FILE__; } /** * Returns DB table name for entity * * @return string */ public static function getTableName() { return 'b_kdaimportexcel_profile'; } /** * Returns entity map definition. * * @return array */ public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, 'title' => Loc::getMessage('KDA_IE_PROFILE_ENTITY_ID_FIELD'), ), 'ACTIVE' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), 'default_value' => 'Y', 'title' => Loc::getMessage('KDA_IE_PROFILE_ENTITY_ACTIVE_FIELD'), ), 'NAME' => array( 'data_type' => 'string', 'required' => true, 'validation' => array(__CLASS__, 'validateName'), 'title' => Loc::getMessage('KDA_IE_PROFILE_ENTITY_NAME_FIELD'), ), 'PARAMS' => array( 'data_type' => 'text', 'default_value' => '', 'title' => Loc::getMessage('KDA_IE_PROFILE_ENTITY_PARAMS_FIELD'), ), 'DATE_START' => array( 'data_type' => 'datetime', 'default_value' => '', 'title' => Loc::getMessage('KDA_IE_PROFILE_ENTITY_DATE_START_FIELD'), ), 'DATE_FINISH' => array( 'data_type' => 'datetime', 'default_value' => '', 'title' => Loc::getMessage('KDA_IE_PROFILE_ENTITY_DATE_FINISH_FIELD'), ), 'SORT' => array( 'data_type' => 'integer', 'default_value' => 500, 'title' => Loc::getMessage('KDA_IE_PROFILE_ENTITY_SORT_FIELD'), ), 'FILE_HASH' => array( 'data_type' => 'string', 'title' => Loc::getMessage('KDA_IE_PROFILE_ENTITY_FILE_HASH_FIELD'), ), 'GROUP_ID' => array( 'data_type' => 'integer', 'title' => '', ), 'NEED_RUN' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), 'default_value' => 'N', 'title' => '', ), 'PROFILE_EXEC' => new Entity\ReferenceField( 'PROFILE_EXEC', '\Bitrix\KdaImportexcel\ProfileExecTable', array('=this.ID' => 'ref.PROFILE_ID'), array('join_type' => 'LEFT') ), 'PROFILE_EXEC_STAT' => new Entity\ReferenceField( 'PROFILE_EXEC_STAT', '\Bitrix\KdaImportexcel\ProfileExecStatTable', array('=this.ID' => 'ref.PROFILE_ID'), array('join_type' => 'LEFT') ), ); } /** * Returns validators for NAME field. * * @return array */ public static function validateName() { return array( new Entity\Validator\Length(null, 255), ); } }