CCrmMailTemplateError::GetText

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmMailTemplateError
  4. GetText
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/mail_template.php
  • Класс: \CCrmMailTemplateError
  • Вызов: CCrmMailTemplateError::GetText
public function GetText()
{
	IncludeModuleLangFile(__FILE__);
	switch($this->code)
	{
		case self::NotExists:
			return GetMessage('CRM_MAIL_TEMPLATE_ERROR_NOT_EXISTS', array('#ID#' => $this->GetParam('ID', 0)));
		case self::FieldNotSpecified:
			return GetMessage('CRM_MAIL_TEMPLATE_ERROR_FIELD_NOT_SPECIFIED', array('#FIELD#' => GetMessage('CRM_MAIL_TEMPLATE_FIELD_'.$this->GetParam('FIEILD_ID', ''))));
		default:
			return '';
	}
}

Добавить комментарий