|
@@ 100-103 (lines=4) @@
|
| 97 |
|
|
| 98 |
|
public function checkRequest($params = [], $ajax = false) |
| 99 |
|
{ |
| 100 |
|
if (!$this->checkAccess()) { |
| 101 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->formName . '"'); |
| 102 |
|
return []; |
| 103 |
|
} |
| 104 |
|
$successId = 0; |
| 105 |
|
if (!empty($_POST[$this->requestFormName][$this->modelName])) { |
| 106 |
|
$request = $_POST[$this->requestFormName][$this->modelName]; |
|
@@ 184-187 (lines=4) @@
|
| 181 |
|
|
| 182 |
|
public function draw($params = [], $ajax = false) |
| 183 |
|
{ |
| 184 |
|
if (!$this->checkAccess()) { |
| 185 |
|
$this->drawError('you not have access to "' . $this->modelName . '" form with name: "' . $this->formName . '"'); |
| 186 |
|
return []; |
| 187 |
|
} |
| 188 |
|
$form = new Form(!empty($this->form['formOptions']) ? $this->form['formOptions'] : []); |
| 189 |
|
\App::$cur->view->widget('Ui\ActiveForm', ['form' => $form, 'activeForm' => $this, 'ajax' => $ajax, 'params' => $params]); |
| 190 |
|
} |