|
@@ 233-236 (lines=4) @@
|
| 230 |
|
if (!class_exists($modelName)) { |
| 231 |
|
return []; |
| 232 |
|
} |
| 233 |
|
if (!$this->checkAccess()) { |
| 234 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 235 |
|
return []; |
| 236 |
|
} |
| 237 |
|
$modelName = $this->modelName; |
| 238 |
|
$queryParams = []; |
| 239 |
|
if (empty($params['all'])) { |
|
@@ 511-514 (lines=4) @@
|
| 508 |
|
if (!class_exists($modelName)) { |
| 509 |
|
return []; |
| 510 |
|
} |
| 511 |
|
if (!$this->checkAccess()) { |
| 512 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 513 |
|
return []; |
| 514 |
|
} |
| 515 |
|
if (!empty($params['limit'])) { |
| 516 |
|
$this->limit = (int) $params['limit']; |
| 517 |
|
} |
|
@@ 669-672 (lines=4) @@
|
| 666 |
|
if (!class_exists($this->modelName)) { |
| 667 |
|
return false; |
| 668 |
|
} |
| 669 |
|
if (!$this->checkAccess()) { |
| 670 |
|
$this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
| 671 |
|
return []; |
| 672 |
|
} |
| 673 |
|
$tree = new Tree(); |
| 674 |
|
$tree->ul($this->managerOptions['categorys']['model'], 0, function($category) { |
| 675 |
|
$path = $category->tree_path . ($category->pk() ? $category->pk() . "/" : ''); |