• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/message/configuration.php
  • Класс: BitrixSenderMessageConfiguration
  • Вызов: Configuration::getReadonlyView
public function getReadonlyView($key, $defaultValue = null)
{
	$value = $this->get($key, $defaultValue);
	$option = $this->getOption($key);

	/**
	 * this decision was made after analysing ConfigurationOption class
	 */
	if (!empty($option->getItems()))
	{
		foreach ($option->getItems() as $item)
		{
			if (!empty($value) && isset($item['code']) && $item['code'] == $value)
			{
				return $item['value'];
			}
		}
	}

	if ($option)
	{
		return $option->getReadonlyView($value);
	}

	return $value;
}