actionListTree($request->getRouteParams(), $request->getParsedBody(), $request); } $where = $request->get('where'); $parentId = $request->get('parentId'); $maxDepth = $request->get('maxDepth'); $onlyNotEmpty = $request->get('onlyNotEmpty'); $collection = $this->getRecordService()->getTree( $parentId, [ 'where' => $where, 'onlyNotEmpty' => $onlyNotEmpty, ], $maxDepth ); return (object) [ 'list' => $collection->getValueMapList(), 'path' => $this->getRecordService()->getTreeItemPath($parentId), 'data' => $this->getRecordService()->getCategoryData($parentId), ]; } public function getActionLastChildrenIdList($params, $data, $request): array { if (!$this->acl->check($this->name, 'read')) { throw new Forbidden(); } $parentId = $request->get('parentId'); return $this->getRecordService()->getLastChildrenIdList($parentId); } }