I want to fire a plugin on Phoda Download new file add

Phoca Download - download manager
Gruz
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 26 Dec 2008, 19:09
Location: Ukraine
Contact:

I want to fire a plugin on Phoda Download new file add

Post by Gruz »

Hi, Jan.

Does PD register an event on addind a new file? My quick code examination says it doesn't, but I'm not sure.

What I want. I've created a small plugin which notifies users via email when an article is added/published/edited at a web-site. But a user asks the plugin to notify him when a new file is uploaded. So if there were en event like onPhocaDownloadFileEdit or something like this, this request would be possible to fit.

Thanks.

Image
Last edited by Gruz on 12 May 2016, 15:35, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48610
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: I want to fire a plugin on Phoda Download new file add

Post by Jan »

Hi, but where this event should be, is it not easier e.g. to check the RSS file?
If you find Phoca extensions useful, please support the project
Gruz
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 26 Dec 2008, 19:09
Location: Ukraine
Contact:

Re: I want to fire a plugin on Phoda Download new file add

Post by Gruz »

A plugin runs when something happens. onContentSave, i.e. How would it know when to read RSS then?

http://docs.joomla.org/Supporting_plugi ... _component

Don't care very much about it. It was a question here: http://gruz.org.ua/en/about-joomla/29-j ... omment-216
Not even a feature request.

Thanks.

Image
Last edited by Gruz on 12 May 2016, 15:35, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48610
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: I want to fire a plugin on Phoda Download new file add

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply