Content::addText

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. Content
  4. addText
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/search/content.php
  • Класс: Bitrix\Sender\Search\Content
  • Вызов: Content::addText
public function addText($text, $length = null)
{
	if(!is_string($text))
	{
		$text = (string) $text;
	}

	$text = trim($text);
	if($length > 0)
	{
		$text = mb_substr($text, 0, $length);
	}

	if($text !== '' && !in_array($text, $this->data))
	{
		$this->data[] = $text;
	}

	return $this;
}

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