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/catalog/lib/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/catalog/lib/productcompilationtable.php
<?php
namespace Bitrix\Catalog;

use Bitrix\Crm\DealTable;
use Bitrix\Main\Localization\Loc,
	Bitrix\Main\ORM\Data\DataManager,
	Bitrix\Main\ORM\Fields\IntegerField,
	Bitrix\Main\ORM\Fields\TextField;
use Bitrix\Main\ORM\Fields\DatetimeField;
use Bitrix\Main\ORM\Fields\Relations\Reference;
use Bitrix\Main\Type\DateTime;

Loc::loadMessages(__FILE__);

/**
 * Class ProductCompilationTable
 *
 * Fields:
 * <ul>
 * <li> ID int mandatory
 * <li> DEAL_ID int mandatory
 * <li> PRODUCT_IDS text mandatory
 * <li> CREATION_DATE datetime mandatory
 * <li> CHAT_ID int optional
 * <li> QUEUE_ID int optional
 * </ul>
 *
 * @package Bitrix\Catalog
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_ProductCompilation_Query query()
 * @method static EO_ProductCompilation_Result getByPrimary($primary, array $parameters = [])
 * @method static EO_ProductCompilation_Result getById($id)
 * @method static EO_ProductCompilation_Result getList(array $parameters = [])
 * @method static EO_ProductCompilation_Entity getEntity()
 * @method static \Bitrix\Catalog\EO_ProductCompilation createObject($setDefaultValues = true)
 * @method static \Bitrix\Catalog\EO_ProductCompilation_Collection createCollection()
 * @method static \Bitrix\Catalog\EO_ProductCompilation wakeUpObject($row)
 * @method static \Bitrix\Catalog\EO_ProductCompilation_Collection wakeUpCollection($rows)
 */

class ProductCompilationTable extends DataManager
{
	/**
	 * Returns DB table name for entity.
	 *
	 * @return string
	 */
	public static function getTableName()
	{
		return 'b_catalog_product_compilation';
	}

	/**
	 * Returns entity map definition.
	 *
	 * @return array
	 */
	public static function getMap()
	{
		return [
			new IntegerField(
				'ID',
				[
					'primary' => true,
					'autocomplete' => true,
					'title' => Loc::getMessage('PRODUCT_COMPILATION_ENTITY_ID_FIELD')
				]
			),
			new IntegerField(
				'DEAL_ID',
				[
					'required' => true,
					'title' => Loc::getMessage('PRODUCT_COMPILATION_ENTITY_DEAL_ID_FIELD')
				]
			),
			new TextField(
				'PRODUCT_IDS',
				[
					'required' => true,
					'title' => Loc::getMessage('PRODUCT_COMPILATION_ENTITY_PRODUCT_IDS_FIELD')
				]
			),
			new DatetimeField(
				'CREATION_DATE',
				[
					'required' => true,
					'title' => Loc::getMessage('PRODUCT_COMPILATION_ENTITY_PRODUCT_IDS_FIELD')
				]
			),
			new IntegerField(
				'CHAT_ID',
				[
					'required' => false,
					'title' => Loc::getMessage('PRODUCT_COMPILATION_ENTITY_CHAT_ID_FIELD')
				]
			),
			new IntegerField(
				'QUEUE_ID',
				[
					'required' => false,
					'title' => Loc::getMessage('PRODUCT_COMPILATION_ENTITY_QUEUE_ID_FIELD')
				]
			),
		];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit