• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/Param/Menu.php
  • Класс: BitrixImV2MessageParamMenu
  • Вызов: Menu::setValue
public function setValue($value): self
{
	if ($value instanceof ImBotContextMenu)
	{
		$this->menu = $value;
	}
	elseif (!empty($value))
	{
		$this->menu = ImBotContextMenu::getByJson($value);
	}

	if (isset($this->menu))
	{
		$this->value = $this->menu->getArray();
		$this->jsonValue = $this->menu->getJson();
	}

	return $this;
}