mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 02:36:42 +02:00
feat(plugins): add before channel/item hooks to allow podcast/episode data edit when generating rss
This commit is contained in:
parent
8ec79097bb
commit
80d2c48ee2
15 changed files with 44 additions and 27 deletions
|
|
@ -10,9 +10,13 @@ use App\Libraries\SimpleRSSElement;
|
|||
|
||||
interface PluginInterface
|
||||
{
|
||||
public function channelTag(Podcast $podcast, SimpleRSSElement $channel): void;
|
||||
public function rssBeforeChannel(Podcast $podcast): void;
|
||||
|
||||
public function itemTag(Episode $episode, SimpleRSSElement $item): void;
|
||||
public function rssAfterChannel(Podcast $podcast, SimpleRSSElement $channel): void;
|
||||
|
||||
public function rssBeforeItem(Episode $episode): void;
|
||||
|
||||
public function rssAfterItem(Episode $episode, SimpleRSSElement $item): void;
|
||||
|
||||
public function siteHead(): void;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue