|
@@ 239-242 (lines=4) @@
|
| 236 |
|
if (!class_exists($modelName)) { |
| 237 |
|
return []; |
| 238 |
|
} |
| 239 |
|
if (!$this->checkAccess()) { |
| 240 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 241 |
|
return []; |
| 242 |
|
} |
| 243 |
|
$modelName = $this->modelName; |
| 244 |
|
$queryParams = []; |
| 245 |
|
if (empty($params['all'])) { |
|
@@ 416-419 (lines=4) @@
|
| 413 |
|
if (empty($this->managerOptions['summary'])) { |
| 414 |
|
return []; |
| 415 |
|
} |
| 416 |
|
if (!$this->checkAccess()) { |
| 417 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 418 |
|
return []; |
| 419 |
|
} |
| 420 |
|
$modelName = $this->modelName; |
| 421 |
|
$queryParams = []; |
| 422 |
|
if (!empty($params['categoryPath']) && $modelName::$categoryModel) { |
|
@@ 699-702 (lines=4) @@
|
| 696 |
|
if (!class_exists($modelName)) { |
| 697 |
|
return []; |
| 698 |
|
} |
| 699 |
|
if (!$this->checkAccess()) { |
| 700 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 701 |
|
return []; |
| 702 |
|
} |
| 703 |
|
if (!empty($params['limit'])) { |
| 704 |
|
$this->limit = (int) $params['limit']; |
| 705 |
|
} |
|
@@ 850-853 (lines=4) @@
|
| 847 |
|
if (!$this->predraw) { |
| 848 |
|
$this->preDraw($params, $model); |
| 849 |
|
} |
| 850 |
|
if (!$this->checkAccess()) { |
| 851 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 852 |
|
return false; |
| 853 |
|
} |
| 854 |
|
\App::$cur->view->widget('Ui\DataManager/DataManager', [ |
| 855 |
|
'dataManager' => $this, |
| 856 |
|
'model' => $model, |
|
@@ 867-870 (lines=4) @@
|
| 864 |
|
if (!class_exists($this->modelName)) { |
| 865 |
|
return false; |
| 866 |
|
} |
| 867 |
|
if (!$this->checkAccess()) { |
| 868 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 869 |
|
return []; |
| 870 |
|
} |
| 871 |
|
$tree = new Tree(); |
| 872 |
|
$tree->ul($this->managerOptions['categorys']['model'], 0, function ($category) { |
| 873 |
|
$path = $category->tree_path . ($category->pk() ? $category->pk() . "/" : ''); |