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/im/lib/model/ |
Upload File : |
<?php namespace Bitrix\Im\Model; use Bitrix\Main; use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait; use Bitrix\Main\ORM\Fields\ExpressionField; /** * Class AliasTable * * Fields: * <ul> * <li> ID int mandatory * <li> ALIAS string(255) mandatory * <li> ENTITY_TYPE string(255) mandatory * <li> ENTITY_ID string(255) mandatory * </ul> * * @package Bitrix\Im * * DO NOT WRITE ANYTHING BELOW THIS * * <<< ORMENTITYANNOTATION * @method static EO_Alias_Query query() * @method static EO_Alias_Result getByPrimary($primary, array $parameters = []) * @method static EO_Alias_Result getById($id) * @method static EO_Alias_Result getList(array $parameters = []) * @method static EO_Alias_Entity getEntity() * @method static \Bitrix\Im\Model\EO_Alias createObject($setDefaultValues = true) * @method static \Bitrix\Im\Model\EO_Alias_Collection createCollection() * @method static \Bitrix\Im\Model\EO_Alias wakeUpObject($row) * @method static \Bitrix\Im\Model\EO_Alias_Collection wakeUpCollection($rows) */ class AliasTable extends Main\Entity\DataManager { use DeleteByFilterTrait; /** * Returns DB table name for entity. * * @return string */ public static function getTableName() { return 'b_im_alias'; } /** * Returns entity map definition. * * @return array */ public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, //'title' => Loc::getMessage('ALIAS_ENTITY_ID_FIELD'), ), 'ALIAS' => array( 'data_type' => 'string', 'required' => true, 'validation' => array(__CLASS__, 'validateAlias'), //'title' => Loc::getMessage('ALIAS_ENTITY_ALIAS_FIELD'), ), 'DATE_CREATE' => array( 'data_type' => 'datetime', 'required' => true, //'title' => Loc::getMessage('ALIAS_ENTITY_ENTITY_DATE_CREATE_FIELD'), ), 'ENTITY_TYPE' => array( 'data_type' => 'string', 'required' => true, 'validation' => array(__CLASS__, 'validateEntityType'), //'title' => Loc::getMessage('ALIAS_ENTITY_ENTITY_TYPE_FIELD'), ), 'ENTITY_ID' => array( 'data_type' => 'integer', 'required' => true, //'title' => Loc::getMessage('ALIAS_ENTITY_ENTITY_ID_FIELD'), ), ); } /** * Returns validators for ALIAS field. * * @return array */ public static function validateAlias() { return array( new Main\Entity\Validator\Length(null, 255), ); } /** * Returns validators for ENTITY_TYPE field. * * @return array */ public static function validateEntityType() { return array( new Main\Entity\Validator\Length(null, 255), ); } /** * @deprecated */ public static function deleteBatch(array $filter, $limit = 0) { static::deleteByFilter($filter); } }