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/grain.iiko/lib/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/grain.iiko/lib/modifierlist.php
<?php

namespace Grain\Iiko;

use \Bitrix\Main\Entity;
use \Bitrix\Main\Type;
use \Bitrix\Main\Localization\Loc;

Loc::loadMessages(__FILE__);

class ModifierListTable extends Entity\DataManager
{
	/*
	public static function getTableName()
	{
		return 'b_grain_iiko_modifier_list'; // auto create
	}
	*/

	public static function getUfId()
	{
		return 'GRAIN_IIKO_MODIFIER_LIST';
	}

	/*public static function getConnectionName()
	{
		return 'default';
	}
	*/

	public static function getMap()
	{
		return array(

			new Entity\IntegerField('ID', array(
				'primary' => true,
				'autocomplete' => true
			)),
			
			new Entity\StringField('ORGANIZATION_ID', array(
                'required' => true,
            )),

			new Entity\StringField('MODIFIER_ID', array(
                'required' => true,
            )),
			
			new Entity\StringField('NAME', array(
				'required' => true,
			)),

			new Entity\IntegerField('SORT',array(
				'default_value' => 100,
			)),

			new Entity\IntegerField('GROUP_ID'),

            new Entity\ReferenceField(
                'GROUP',
                '\Grain\Iiko\ModifierListGroupTable',
                array('=this.GROUP_ID' => 'ref.ID')
            ),

			new Entity\BooleanField('ACTIVE', array(
				'values' => array('Y', 'N'),
				'default_value' => 'Y',
			)),

			new Entity\BooleanField('DELETED', array(
				'values' => array('Y', 'N'),
				'default_value' => 'N',
			)),

		);
	}	
}

Youez - 2016 - github.com/yon3zu
LinuXploit