• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/entityselector/textnode.php
  • Класс: BitrixUIEntitySelectorTextNode
  • Вызов: TextNode::__construct
public function __construct($options)
{
	if (is_array($options))
	{
		if (isset($options['text']) && (is_string($options['text']) || is_int($options['text'])))
		{
			$this->text = (string)$options['text'];
		}

		if (isset($options['type']) && TextNodeType::isValid($options['type']))
		{
			$this->type = $options['type'];
		}
	}
	else if (is_string($options) || is_int($options))
	{
		$this->text = (string)$options;
	}
}