CCrmViewHelper::RenderInfo

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmViewHelper
  4. RenderInfo
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_view_helper.php
  • Класс: \CCrmViewHelper
  • Вызов: CCrmViewHelper::RenderInfo
static function RenderInfo($url, $titleHtml, $descriptionHtml, array $options = null)
{
	$url = strval($url);
	$titleHtml = strval($titleHtml);
	$descriptionHtml = strval($descriptionHtml);

	if(!is_array($options))
	{
		$options = array();
	}

	$legendHtml = isset($options['LEGEND']) ? strval($options['LEGEND']) : '';
	$target = isset($options['TARGET']) ? strval($options['TARGET']) : '';
	$onclick = isset($options['ONCLICK']) ? strval($options['ONCLICK']) : '';

	$result = '';
	if($url !== '' || $titleHtml !== '')
	{
		$result .= '
'; if($url !== '') { $result .= ''.($titleHtml !== '' ? $titleHtml : $url).''; } elseif($titleHtml !== '') { $result .= $titleHtml; } $result .= '
'; } if($descriptionHtml !== '') { $result .= '
'.$descriptionHtml.'
'; } if($legendHtml !== '') { $result .= '
'.$legendHtml.'
'; } return '
'.$result.'
'; }

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