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

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/abtest/lib/abtest.php
<?php

namespace Bitrix\ABTest;

use Bitrix\Main\Entity;
use Bitrix\Main\Localization;

Localization\Loc::loadMessages(__FILE__);

/**
 * Class ABTestTable
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_ABTest_Query query()
 * @method static EO_ABTest_Result getByPrimary($primary, array $parameters = array())
 * @method static EO_ABTest_Result getById($id)
 * @method static EO_ABTest_Result getList(array $parameters = array())
 * @method static EO_ABTest_Entity getEntity()
 * @method static \Bitrix\ABTest\EO_ABTest createObject($setDefaultValues = true)
 * @method static \Bitrix\ABTest\EO_ABTest_Collection createCollection()
 * @method static \Bitrix\ABTest\EO_ABTest wakeUpObject($row)
 * @method static \Bitrix\ABTest\EO_ABTest_Collection wakeUpCollection($rows)
 */
class ABTestTable extends Entity\DataManager
{

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

	/**
	 * Returns entity map definition
	 *
	 * @return array
	 */
	public static function getMap()
	{
		return array(
			'ID' => array(
				'data_type' => 'integer',
				'primary' => true,
				'autocomplete' => true
			),
			'SITE_ID' => array(
				'data_type' => 'string',
				'title'     => Localization\Loc::getMessage('abtest_entity_site_field'),
				'required'  => true
			),
			'ACTIVE' => array(
				'data_type' => 'boolean',
				'title'     => Localization\Loc::getMessage('abtest_entity_active_field'),
				'values'    => array('N', 'Y'),
				'required'  => true
			),
			'ENABLED' => array(
				'data_type' => 'enum',
				'title'     => Localization\Loc::getMessage('abtest_entity_enabled_field'),
				'values'    => array('N', 'T', 'Y'),
				'required'  => true
			),
			'NAME' => array(
				'data_type' => 'string',
				'title'     => Localization\Loc::getMessage('abtest_entity_name_field'),
			),
			'DESCR' => array(
				'data_type' => 'text',
				'title'     => Localization\Loc::getMessage('abtest_entity_descr_field'),
			),

			'TEST_DATA' => array(
				'data_type'  => 'text',
				'title'      => Localization\Loc::getMessage('abtest_entity_test_data_field'),
				'serialized' => true,
				'required'   => true
			),

			'START_DATE' => array(
				'data_type' => 'datetime',
				'title'     => Localization\Loc::getMessage('abtest_entity_start_date_field'),
			),
			'STOP_DATE' => array(
				'data_type' => 'datetime',
				'title'     => Localization\Loc::getMessage('abtest_entity_stop_date_field'),
			),
			'DURATION' => array(
				'data_type' => 'integer',
				'title'     => Localization\Loc::getMessage('abtest_entity_duration_field'),
				'required'  => true
			),
			'PORTION' => array(
				'data_type' => 'integer',
				'title'     => Localization\Loc::getMessage('abtest_entity_portion_field'),
				'required'  => true
			),

			'MIN_AMOUNT' => array(
				'data_type' => 'integer',
				'title'     => Localization\Loc::getMessage('abtest_entity_min_amount_field')
			),

			'USER_ID' => array(
				'data_type' => 'integer',
				'title'     => Localization\Loc::getMessage('abtest_entity_userid_field')
			),
			'USER' => array(
				'data_type' => 'Bitrix\Main\User',
				'reference' => array('=this.USER_ID' => 'ref.ID'),
			),

			'SORT' => array(
				'data_type' => 'integer',
				'title'     => Localization\Loc::getMessage('abtest_entity_sort_field'),
			),
		);
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit