Get properties of a plugin
Posted: Thu Aug 31, 2006 7:06 pm
Hi,
I'm trying to modify a spam statistics plugin to read entries from the spamblock plugin's log. To do this I need to work out what type of logging spamblock is using. How can I find the 'logtype' property of the spamblock plugin from within the spamstats plugin?
I noticed the spamblock logtype is stored in $serendipity, but with the class id(?) as the key:
["serendipity_event_spamblock:29da447ec2de49096452e6037c9a79aa/logtype"]=>
string(4) "file"
is there an efficient way to fetch the value from $serendipity (ie work out the clsid) or is there an easier/more efficient way?
Cheers.
I'm trying to modify a spam statistics plugin to read entries from the spamblock plugin's log. To do this I need to work out what type of logging spamblock is using. How can I find the 'logtype' property of the spamblock plugin from within the spamstats plugin?
I noticed the spamblock logtype is stored in $serendipity, but with the class id(?) as the key:
["serendipity_event_spamblock:29da447ec2de49096452e6037c9a79aa/logtype"]=>
string(4) "file"
is there an efficient way to fetch the value from $serendipity (ie work out the clsid) or is there an easier/more efficient way?
Cheers.