CCrmProductFile::GetInputHTML

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmProductFile
  4. GetInputHTML
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_product_file.php
  • Класс: \CCrmProductFile
  • Вызов: CCrmProductFile::GetInputHTML
function GetInputHTML($params = array())
{
	$input_name = $this->_field_id;
	$size = 20;
	$show_info = false;

	if(is_array($params))
	{
		if(isset($params['input_name']))
			$input_name = $params['input_name'];
		if(isset($params['size']))
			$size = intval($params['size']);
		if(isset($params['show_info']))
			$show_info = (bool)$params['show_info'];
	}

	$strReturn = ' ';

	if(is_array($this->_file))
	{
		if($show_info)
		{
			$strReturn .= $this->GetInfoHTML(array(
					'url_template' => $params['url_template'],
					'view' => 'short',
				));
		}

		$p = mb_strpos($input_name, "[");
		if($p > 0)
			$del_name = mb_substr($input_name, 0, $p)."_del".mb_substr($input_name, $p);
		else
			$del_name = $input_name."_del";

		$strReturn .= '';
		$strReturn .= ' 
'; } return $strReturn; }

Добавить комментарий