| @@ 216-219 (lines=4) @@ | ||
| 213 | if (!class_exists($modelName)) { |
|
| 214 | return []; |
|
| 215 | } |
|
| 216 | if (!$this->checkAccess()) { |
|
| 217 | $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
|
| 218 | return []; |
|
| 219 | } |
|
| 220 | $modelName = $this->modelName; |
|
| 221 | $queryParams = []; |
|
| 222 | if (empty($params['all'])) { |
|
| @@ 493-496 (lines=4) @@ | ||
| 490 | if (!class_exists($modelName)) { |
|
| 491 | return []; |
|
| 492 | } |
|
| 493 | if (!$this->checkAccess()) { |
|
| 494 | $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
|
| 495 | return []; |
|
| 496 | } |
|
| 497 | if (!empty($params['limit'])) { |
|
| 498 | $this->limit = (int) $params['limit']; |
|
| 499 | } |
|