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/main/lib/filter/component/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/filter/component/componentparams.php
<?php

namespace Bitrix\Main\Filter\Component;

use Bitrix\Main\Filter\Filter;
use Bitrix\Main\UI\Filter\Theme;

/**
 * Params for `main.ui.filter` component.
 */
final class ComponentParams
{
	private Filter $filter;

	public function __construct(Filter $filter)
	{
		$this->filter = $filter;
	}

	public static function get(Filter $filter, array $additionalParams = []): array
	{
		return (new self($filter))->getParams($additionalParams);
	}

	/**
	 * Get component parameters.
	 *
	 * @param array $additionalParams if filter is used with grid, it must contain `GRID_ID`
	 *
	 * @return array
	 */
	public function getParams(array $additionalParams = []): array
	{
		return $additionalParams + [
			'FILTER_ID' => $this->filter->getID(),
			'FILTER' => $this->filter->getFieldArrays(),
			'FILTER_PRESETS' => [],
			'ENABLE_LABEL' => true,
			'THEME' => Theme::LIGHT,
			'CONFIG' => [
				'AUTOFOCUS' => false,
			],
			// LAZY_LOAD
			// VALUE_REQUIRED
			// ENABLE_ADDITIONAL_FILTERS
			// ENABLE_FIELDS_SEARCH
			// HEADERS_SECTIONS
			// MESSAGES
			// RESET_TO_DEFAULT_MODE
			// VALUE_REQUIRED_MODE
			// DISABLE_SEARCH
			// ENABLE_LIVE_SEARCH
			// COMPACT_STATE
			// ENABLE_LABEL
			// FILTER_PRESETS
			// FILTER_ROWS
			// COMMON_PRESETS_ID
			// RENDER_FILTER_INTO_VIEW
			// RENDER_FILTER_INTO_VIEW_SORT
		];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit