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/sale/lib/internals/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/sale/lib/internals/status_lang.php
<?php
/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage sale
 * @copyright 2001-2014 Bitrix
 */
namespace Bitrix\Sale\Internals;

use	Bitrix\Main,
	Bitrix\Main\Localization\Loc;

Loc::loadMessages(__FILE__);

/**
 * Class StatusLangTable
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_StatusLang_Query query()
 * @method static EO_StatusLang_Result getByPrimary($primary, array $parameters = [])
 * @method static EO_StatusLang_Result getById($id)
 * @method static EO_StatusLang_Result getList(array $parameters = [])
 * @method static EO_StatusLang_Entity getEntity()
 * @method static \Bitrix\Sale\Internals\EO_StatusLang createObject($setDefaultValues = true)
 * @method static \Bitrix\Sale\Internals\EO_StatusLang_Collection createCollection()
 * @method static \Bitrix\Sale\Internals\EO_StatusLang wakeUpObject($row)
 * @method static \Bitrix\Sale\Internals\EO_StatusLang_Collection wakeUpCollection($rows)
 */
class StatusLangTable extends Main\Entity\DataManager
{
	public static function getFilePath()
	{
		return __FILE__;
	}

	public static function getTableName()
	{
		return 'b_sale_status_lang';
	}

	public static function getMap()
	{
		return array(

			new Main\Entity\StringField('STATUS_ID', array(
				'primary' => true,
				'format'  => '/^[A-Za-z]{1,2}$/',
				'title'   => Loc::getMessage('B_SALE_STATUS_LANG_STATUS_ID'),
			)),

			new Main\Entity\StringField('LID', array(
				'primary' => true,
				'format' => '/^[a-z]{2}$/',
				'title'   => Loc::getMessage('B_SALE_STATUS_LANG_LID'),
			)),

			new Main\Entity\StringField('NAME', array(
				'required' => true,
				'title'   => Loc::getMessage('B_SALE_STATUS_LANG_NAME'),
			)),

			new Main\Entity\StringField('DESCRIPTION', array(
				'title'   => Loc::getMessage('B_SALE_STATUS_LANG_DESCRIPTION'),
			)),

			new Main\Entity\ReferenceField('STATUS', 'Bitrix\Sale\Internals\StatusTable',
				array('=this.STATUS_ID' => 'ref.ID'),
                array('join_type' => 'INNER')
			),

			// field for filter operation on entity
			//'ID' => array(
			//	'data_type' => 'string',
			//	'expression' => array(
			//		'%s', 'STATUS_ID'
			//	)
			//),

		);
	}

	public static function deleteByStatus($statusId)
	{
		$result = self::getList(array(
			'select' => array('STATUS_ID', 'LID'),
			'filter' => array('=STATUS_ID' => $statusId)
		));

		while ($primary = $result->fetch())
		{
			self::delete($primary);
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit