@param int $id

@return Model\Forum\ForumTopic[]
@throws Exception\BadResponseException
@throws ParserException
184534
public function AnimeForum(int $id): array
    {
        return $this->myanimelist->getAnimeForum(
            new Request\Anime\AnimeForumRequest($id)
        );
    }
902391
public function mediatemplate($id)
    {
        $template = $this->templateManager->find($id);

        if (!$template) {
            return [];
        }

        return $template->getParameters();
    }
608254
public function AnimeNews(int $id): array
    {
        return $this->myanimelist->getNewsList(
            new Request\Anime\AnimeNewsRequest($id)
        );
    }
669977
public function getMessageInformation($id = '')
    {
        $message = [];
        if (is_array($this->messages) == true) {
            foreach($this ->messages as $msg) {
                if ($msg['index'] == $id) {
                    return $msg;
                }
            }
        }
        return $message;
    }
1067658
public function getReleaseAssets(string $id): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/releases/:id/assets',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $id));
    }
118346
public function get_links(string $id): ?array
  {
    return $this->_get_links($id, $this->id_user, $this->id_group);
  }
303354
public function get($id): ?array
  {
    if ( $this->check() ){
      $d = $this->db->rselect('bbn_observers', [], [
        'id' => $id
      ]);
      if ( !$d['id_alias'] ){
        return $d;
      }
      $alias = $this->db->rselect('bbn_observers', [], [
        'id' => $d['id_alias']
      ]);
      $alias['id'] = $d['id'];
      $alias['result'] = $d['result'];
      $alias['id_alias'] = $d['id_alias'];
      return $alias;
    }
    return null;
  }
1279639
public function getComment(int $id): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/issues/comments/:id',
            $this->getIssues()->getOwner(), $this->getIssues()->getRepo(), $id));
    }
52696
public function index($id = null)
    {
        $this->authorize('readList', Content::class);
        $input  = $this->validator->validate('list');
        $params = $this->processor->process($input)->getProcessedFields();
        if ($id) { // content/id/children
            $content = $this->repository->getById($id);
            if (!empty($content)) {
                $results = $this->repository->getChildren(
                    $content,
                    $params['filter'],
                    $params['orderBy'],
                    $params['page'],
                    $params['perPage']
                );
                return $this->respondWithSuccess($results, new ContentTransformer);
            } else {
                return $this->respondNotFound();
            }
        }

        $results = $this->repository->getContents(
            $params['filter'],
            $params['orderBy'],
            $params['page'],
            $params['perPage']
        );

        return $this->respondWithSuccess($results, new ContentTransformer);
    }
1247177
public function actionRemove(string $id): array
    {
        $items = Yii::$app->getRequest()->post('items', []);
        $model = $this->findModel($id);
        $model->removeChildren($items);

        return array_merge($model->getItems());
    }
942138
public function getArticlesWithPoll(int $id): array
    {
        $widgetsService = app()->make('InetStudio\Widgets\Contracts\Services\Back\WidgetsServiceContract');
        $articlesService = app()->make('InetStudio\Articles\Contracts\Services\Back\ArticlesServiceContract');

        $widgetsWithPoll = $widgetsService->getModel()::where(
            [
                ['view', '=', 'admin.module.polls::front.partials.content.poll_widget'],
                ['params', 'like', '%'.$id.'%'],
            ]
        )->get();

        $items = [];
        foreach ($widgetsWithPoll ?? [] as $widget) {
            $articles = $articlesService->getModel()::where(
                [
                    ['content', 'like', '%data-type="poll" data-id="'.$widget->id.'"%'],
                ]
            )->get();

            foreach ($articles as $article) {
                $items[] = [
                    'id' => $article->id,
                    'title' => $article->title,
                    'href' => url($article->href),
                ];
            }
        }

        return collect($items)->unique('id')->toArray();
    }
661366
public function getFullHostById($id)
    {
        foreach ($this->hosts as $host => $parameters) {
            if (!isset($parameters['id']) || $parameters['id'] !== $id) {
                continue;
            }

            return $parameters;
        }

        return null;
    }
835093
public function getPath($id) {
        $node = $this->getNode($id);

        if (!$node) {
            return [];
        }

        $left = $this->getConfig('leftField');
        $right = $this->getConfig('rightField');

        return $this->getRepository()->select()
            ->where($left, '<', $node[$left])
            ->where($right, '>', $node[$right])
            ->orderBy($left, 'asc')
            ->all();
    }
513064
public function MangaNews(int $id): array
    {
        return $this->myanimelist->getNewsList(
            new Request\Manga\MangaNewsRequest($id)
        );
    }
748447
public function show($id)
    {
        $ret = $this->get('/relations/'.urlencode($id).'.json');
        if (null === $ret) {
            return [];
        }

        return $ret['relation'];
    }
1038924
public function removeDeployKey(int $id): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/keys/:id',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $id), Request::METHOD_DELETE);
    }
38644
public function CharacterPictures(int $id): array
    {
        return $this->myanimelist->getCharacterPictures(
            new Request\Character\CharacterPicturesRequest($id)
        );
    }