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/highloadblock/lib/ |
Upload File : |
<?php namespace Bitrix\Highloadblock; use Bitrix\Main\Entity; /** * Class HighloadBlockLangTable * * DO NOT WRITE ANYTHING BELOW THIS * * <<< ORMENTITYANNOTATION * @method static EO_HighloadBlockLang_Query query() * @method static EO_HighloadBlockLang_Result getByPrimary($primary, array $parameters = []) * @method static EO_HighloadBlockLang_Result getById($id) * @method static EO_HighloadBlockLang_Result getList(array $parameters = []) * @method static EO_HighloadBlockLang_Entity getEntity() * @method static \Bitrix\Highloadblock\EO_HighloadBlockLang createObject($setDefaultValues = true) * @method static \Bitrix\Highloadblock\EO_HighloadBlockLang_Collection createCollection() * @method static \Bitrix\Highloadblock\EO_HighloadBlockLang wakeUpObject($row) * @method static \Bitrix\Highloadblock\EO_HighloadBlockLang_Collection wakeUpCollection($rows) */ class HighloadBlockLangTable extends Entity\DataManager { /** * Returns DB table name for entity. * @return string */ public static function getTableName() { return 'b_hlblock_entity_lang'; } /** * Returns entity map definition. * @return array */ public static function getMap() { return array( 'ID' => new Entity\IntegerField('ID', array( 'primary' => true )), 'LID' => new Entity\StringField('LID', array( 'primary' => true, 'required' => true, 'validation' => array(__CLASS__, 'validateLid'), )), 'NAME' => new Entity\StringField('NAME', array( 'required' => true, 'validation' => array(__CLASS__, 'validateName'), )), ); } /** * Returns validators for LID field. * * @return array */ public static function validateLid() { return array( new Entity\Validator\Length(null, 2), ); } /** * Returns validators for NAME field. * * @return array */ public static function validateName() { return array( new Entity\Validator\Length(null, 100), ); } }