|
@@ 241-244 (lines=4) @@
|
| 238 |
|
if (!class_exists($modelName)) { |
| 239 |
|
return []; |
| 240 |
|
} |
| 241 |
|
if (!$this->checkAccess()) { |
| 242 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 243 |
|
return []; |
| 244 |
|
} |
| 245 |
|
$modelName = $this->modelName; |
| 246 |
|
$queryParams = []; |
| 247 |
|
if (empty($params['all'])) { |
|
@@ 552-555 (lines=4) @@
|
| 549 |
|
if (!class_exists($modelName)) { |
| 550 |
|
return []; |
| 551 |
|
} |
| 552 |
|
if (!$this->checkAccess()) { |
| 553 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 554 |
|
return []; |
| 555 |
|
} |
| 556 |
|
if (!empty($params['limit'])) { |
| 557 |
|
$this->limit = (int) $params['limit']; |
| 558 |
|
} |
|
@@ 713-716 (lines=4) @@
|
| 710 |
|
if (!class_exists($this->modelName)) { |
| 711 |
|
return false; |
| 712 |
|
} |
| 713 |
|
if (!$this->checkAccess()) { |
| 714 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 715 |
|
return []; |
| 716 |
|
} |
| 717 |
|
$tree = new Tree(); |
| 718 |
|
$tree->ul($this->managerOptions['categorys']['model'], 0, function($category) { |
| 719 |
|
$path = $category->tree_path . ($category->pk() ? $category->pk() . "/" : ''); |