formId == null && !$this->disableFileSizeValidation) { throw new UserException('Не задан ID формы.'); } if (empty($this->attachmentConfigArray) && $this->showAttachments) { throw new UserException('Нет конфигурации для модуля прикрепляемых файлов'); } if (empty($this->regulationConfigArray) && $this->showRegulations) { throw new UserException('Нет конфигурации для модуля прикрепляемых файлов нормативных документов'); } } public function run() { return $this->render('@abiturient/views/partial/fileComponent/fileComponent', [ 'showAttachments' => $this->showAttachments, 'showRegulations' => $this->showRegulations, 'disableFileSizeValidation' => $this->disableFileSizeValidation, 'formId' => $this->formId, 'regulationConfig' => $this->regulationConfigArray, 'attachmentConfig' => $this->attachmentConfigArray, 'multiple' => $this->multiple ]); } }