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/components/yandex.market/admin.form.field/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/yandex.market/admin.form.field/class.php
<?php

namespace Yandex\Market\Components;

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die(); }

class AdminFormField extends \CBitrixComponent
{
	public function onPrepareComponentParams($arParams)
	{
		$arParams['INPUT_NAME'] = isset($arParams['INPUT_NAME']) ? str_replace('[]', '', $arParams['INPUT_NAME']) : null;
		$arParams['MULTIPLE'] = ($arParams['MULTIPLE'] === 'Y');
		$arParams['PLACEHOLDER'] = ($arParams['PLACEHOLDER'] === 'Y');
		$arParams['CHILD'] = ($arParams['CHILD'] === 'Y');
		$arParams['CHILD_CLASS_NAME'] = trim((string)$arParams['CHILD_CLASS_NAME']);
		$arParams['HAS_ERROR'] = !empty($arParams['HAS_ERROR']);

		if ($arParams['MULTIPLE'])
		{
			$arParams['VALUE'] = (array)$arParams['VALUE'];
			$arParams['HAS_VALUE'] = true;

			if (empty($arParams['VALUE']))
			{
				$arParams['HAS_VALUE'] = false;
				$arParams['VALUE'][] = [ 'PLACEHOLDER' => true ];
			}
		}
		else
		{
			$arParams['HAS_VALUE'] = !empty($arParams['VALUE']);
		}

		return $arParams;
	}

	public function executeComponent()
	{
		$this->includeComponentTemplate();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit