• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/util/form/baseform.php
  • Класс: BitrixTimemanUtilFormBaseForm
  • Вызов: BaseForm::getErrors
public function getErrors($fieldName = null)
{
	if ($fieldName === null)
	{
		return $this->errors;
	}
	$res = [];
	foreach ($this->errors as $error)
	{
		if ($error->getCode() === $fieldName)
		{
			$res[] = $error;
		}
	}
	return $res;
}