• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/Param.php
  • Класс: BitrixImV2MessageParam
  • Вызов: Param::load
public function load($source): Result
{
	$result = $this->defaultLoad($source);
	if ($result->isSuccess())
	{
		$checkType = $this->getType();
		$this->detectType();
		if ($this->type !== $checkType)
		{
			$this->setValue($this->value);
		}

		$type = Params::getType($this->name);
		if (isset($type['loadValueFilter']) && is_callable($type['loadValueFilter']))
		{
			$this->value = call_user_func($type['loadValueFilter'], [$this->value]);
		}
	}

	return $result;
}