Home
last modified time | relevance | path

Searched refs:newsId (Results 1 – 5 of 5) sorted by relevance

/plugin/fksnewsfeed/inc/ORM/
H A DServicePriority.php20 public function findByNewsAndStream(int $newsId, int $streamId): ?ModelPriority { argument
21 …ery('SELECT * FROM ? WHERE stream_id=? AND news_id =?', $this->table, $streamId, $newsId)->fetch();
32 public function store(int $newsId, int $streamId): void { argument
33 $model = $this->findByNewsAndStream($newsId, $streamId);
35 $this->update($model, ['news_id' => $newsId, 'stream_id' => $streamId]);
37 $this->create(['news_id' => $newsId, 'stream_id' => $streamId, 'priority' => 0]);
H A DModelNews.php11 public int $newsId; variable in FYKOS\\dokuwiki\\Extension\\PluginNewsFeed\\Model\\ModelNews
83 return (string)wl($pageId, null, true) . '?news-id=' . $this->newsId;
87 return static::getCacheFileById($this->newsId);
97 $this->newsId,
114 $model->newsId = $data['news_id'];
H A DModelPriority.php21 public int $newsId; variable in FYKOS\\dokuwiki\\Extension\\PluginNewsFeed\\Model\\ModelPriority
33 …te->query('DELETE FROM priority WHERE stream_id=? AND news_id =?', $this->streamId, $this->newsId);
40 $model->newsId = $data['news_id'];
/plugin/fksnewsfeed/admin/
H A Dpush.php39 $newsId = $INPUT->param('news')['id'];
41 if ($stream && $newsId) {
49 $this->helper->servicePriority->store($newsId, $streamId);
89 return $value->newsId;
107 private function newsAddForm(string $stream, int $newsId): string { argument
112 $newsForm->setHiddenField('news[id]', $newsId);
/plugin/fksnewsfeed/
H A Daction.php113 $newsId = $INPUT->str('news-id');
114 $news = $this->helper->serviceNews->getById($newsId);
176 private function saveIntoStreams(int $newsId, string $streamName): void { argument
183 $this->helper->servicePriority->store($newsId, $stream);