|
@@ 94-97 (lines=4) @@
|
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
public function checkRequest($params = [], $ajax = false) { |
| 94 |
|
if (!$this->checkAccess()) { |
| 95 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->formName . '"'); |
| 96 |
|
return []; |
| 97 |
|
} |
| 98 |
|
$successId = 0; |
| 99 |
|
$modelName = $this->model; |
| 100 |
|
if (!empty($_POST[$this->requestFormName][$this->modelName]) || !empty($_FILES[$this->requestFormName]['tmp_name'][$this->modelName])) { |
|
@@ 205-208 (lines=4) @@
|
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
public function draw($params = [], $ajax = false) { |
| 205 |
|
if (!$this->checkAccess()) { |
| 206 |
|
$this->drawError('you not have access to "' . $this->modelName . '" form with name: "' . $this->formName . '"'); |
| 207 |
|
return []; |
| 208 |
|
} |
| 209 |
|
$form = new Form(!empty($this->form['formOptions']) ? $this->form['formOptions'] : []); |
| 210 |
|
\App::$cur->view->widget('Ui\ActiveForm', ['form' => $form, 'activeForm' => $this, 'ajax' => $ajax, 'params' => $params]); |
| 211 |
|
} |