• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/Param.php
  • Класс: BitrixImV2MessageParam
  • Вызов: Param::getValue
public function getValue()
{
	if ($this->value === null)
	{
		return $this->getDefaultValue();
	}
	switch ($this->type)
	{
		case self::TYPE_INT:
			return (int)$this->value;

		case self::TYPE_BOOL:
			if (is_string($this->value))
			{
				$this->value = $this->value === 'Y';
			}
			return (bool)$this->value;

		case self::TYPE_STRING:
			return (string)$this->value;

		default:
			return $this->value;
	}
}