• Модуль: mail
  • Путь к файлу: ~/bitrix/modules/mail/classes/general/mail.php
  • Класс: CMail
  • Вызов: CMail::option
static function option($name, $value = null)
{
	static $options;

	if (!is_scalar($name))
		throw new BitrixMainArgumentTypeException('name');

	if (is_null($options))
		$options = array();

	if (is_null($value))
	{
		return array_key_exists($name, $options) ? $options[$name] : null;
	}
	else
	{
		$options[$name] = $value;
		return $value;
	}
}