• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/internals/controller.php
  • Класс: BitrixReportInternalsController
  • Вызов: Controller::checkRequiredInputParams
protected function checkRequiredInputParams(array $inputParams, array $required)
{
	foreach ($required as $item)
	{
		if(!isset($inputParams[$item]) || (!$inputParams[$item] &&
			!(is_string($inputParams[$item]) && mb_strlen($inputParams[$item]))))
		{
			$this->errorCollection->add(array(new Error(
				Loc::getMessage('REPORT_CONTROLLER_ERROR_REQUIRED_PARAMETER',
					array('#PARAM#' => $item)), self::ERROR_REQUIRED_PARAMETER)));
			return false;
		}
	}

	return true;
}