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

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/socialnetwork/lib/feature.php
<?php
/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage socialnetwork
 * @copyright 2001-2020 Bitrix
 */
namespace Bitrix\Socialnetwork;

use Bitrix\Main\Entity;
use Bitrix\Main\ORM\Fields\Relations\OneToMany;
use Bitrix\Main\ORM\Query\Join;

/*
create table b_sonet_features
(
  ID int not null auto_increment,
  ENTITY_TYPE char(1) not null default 'G',
  ENTITY_ID int not null,
  FEATURE varchar(50) not null,
  FEATURE_NAME varchar(250) null,
  ACTIVE char(1) not null default 'Y',
  DATE_CREATE datetime not null,
  DATE_UPDATE datetime not null,
  primary key (ID),
  unique IX_SONET_GROUP_FEATURES_1(ENTITY_TYPE, ENTITY_ID, FEATURE)
);

*/
/**
 * Class FeatureTable
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_Feature_Query query()
 * @method static EO_Feature_Result getByPrimary($primary, array $parameters = [])
 * @method static EO_Feature_Result getById($id)
 * @method static EO_Feature_Result getList(array $parameters = [])
 * @method static EO_Feature_Entity getEntity()
 * @method static \Bitrix\Socialnetwork\EO_Feature createObject($setDefaultValues = true)
 * @method static \Bitrix\Socialnetwork\EO_Feature_Collection createCollection()
 * @method static \Bitrix\Socialnetwork\EO_Feature wakeUpObject($row)
 * @method static \Bitrix\Socialnetwork\EO_Feature_Collection wakeUpCollection($rows)
 */
class FeatureTable extends Entity\DataManager
{
	const FEATURE_ENTITY_TYPE_GROUP = 'G';
	const FEATURE_ENTITY_TYPE_USER = 'U';

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

	public static function getMap()
	{
		$fieldsMap = [
			'ID' => [
				'data_type' => 'integer',
				'primary' => true,
				'autocomplete' => true
			],
			'ENTITY_TYPE' => [
				'data_type' => 'string'
			],
			'ENTITY_ID' => [
				'data_type' => 'integer'
			],
			'FEATURE' => [
				'data_type' => 'string'
			],
			'FEATURE_NAME' => [
				'data_type' => 'string'
			],
			'ACTIVE' => [
				'data_type' => 'string'
			],
			'DATE_CREATE' => [
				'data_type' => 'datetime'
			],
			'DATE_UPDATE' => [
				'data_type' => 'datetime'
			],
			(new OneToMany(
				'PERMISSIONS',
				FeaturePermTable::class,
				'FEATURE'
			))->configureJoinType(Join::TYPE_LEFT),
		];

		return $fieldsMap;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit