403Webshell
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 :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/im/lib/model/optionstatetable.php
<?php

namespace Bitrix\Im\Model;

use Bitrix\Im\V2\Common\MultiplyInsertTrait;
use Bitrix\Main\ArgumentTypeException,
	Bitrix\Main\ORM\Data\DataManager,
	Bitrix\Main\ORM\Fields\IntegerField,
	Bitrix\Main\ORM\Fields\StringField,
	Bitrix\Main\ORM\Fields\Validators\LengthValidator,
	Bitrix\Main\SystemException;


/**
 * Class OptionStateTable
 *
 * Fields:
 * <ul>
 * <li> GROUP_ID int mandatory
 * <li> NAME string(64) mandatory
 * <li> VALUE string(255) optional
 * </ul>
 *
 * @package Bitrix\Im
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_OptionState_Query query()
 * @method static EO_OptionState_Result getByPrimary($primary, array $parameters = [])
 * @method static EO_OptionState_Result getById($id)
 * @method static EO_OptionState_Result getList(array $parameters = [])
 * @method static EO_OptionState_Entity getEntity()
 * @method static \Bitrix\Im\Model\EO_OptionState createObject($setDefaultValues = true)
 * @method static \Bitrix\Im\Model\EO_OptionState_Collection createCollection()
 * @method static \Bitrix\Im\Model\EO_OptionState wakeUpObject($row)
 * @method static \Bitrix\Im\Model\EO_OptionState_Collection wakeUpCollection($rows)
 */

class OptionStateTable extends DataManager
{
	use MultiplyInsertTrait;

	/**
	 * Returns DB table name for entity.
	 *
	 * @return string
	 */
	public static function getTableName(): string
	{
		return 'b_im_option_state';
	}

	/**
	 * Returns entity map definition.
	 *
	 * @return array
	 * @throws SystemException
	 */
	public static function getMap(): array
	{
		return [
			'GROUP_ID' => (new IntegerField('GROUP_ID', [
				'primary' => true,
			])),
			'NAME' => (new StringField('NAME', [
				'primary' => true,
				'validation' => [__CLASS__, 'validateName'],
			])),
			'VALUE' => (new StringField('VALUE', [
				'validation' => [__CLASS__, 'validateValue']
			])),
		];
	}

	/**
	 * Returns validators for NAME field.
	 *
	 * @return array
	 * @throws ArgumentTypeException
	 */
	public static function validateName(): array
	{
		return [
			new LengthValidator(null, 64),
		];
	}

	/**
	 * Returns validators for VALUE field.
	 *
	 * @return array
	 * @throws ArgumentTypeException
	 */
	public static function validateValue(): array
	{
		return [
			new LengthValidator(null, 255),
		];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit