[geeklog-devel] PluginInterface
Vincent Furia
vfuria at gmail.com
Mon Dec 20 23:44:37 EST 2004
Tony ,
Sorry I didn't talk to you about this a bit more. I built the plugin
interface so that it could be called statically. As far as I could
determine all the methods in the interface should be able to be called
without instantiating an object.
So I definitely think you're on the right track with this.
-Vinny
On Mon, 20 Dec 2004 17:02:04 -0600, Tony Bibbs <tony at tonybibbs.com> wrote:
> Any reason that all of the methods on the Geeklog_PluginInterface
> (PluginInterface.php) shouldn't all be static? As a refresher, the
> methods are:
>
> public function install();
> public function uninstall();
> public function upgrade();
> public function getVersion();
> public function handleEvent($event, $var = '');
> public function getPage($request);
> public function getDependencies();
>
> None of them seem to really need an instantiated object. This all came
> up as I thought about how we would call the handleEvent() method. Seems
> more logical to say:
>
> $pluginClassName::handleEvent();
>
> Instead of
>
> $somePlugin = pluginFactory::singleton();
> $somePlugin->handleEvent();
>
> Sorry I'm posting all these questions to the list but until I get some
> more eyes on the actual code, I need a sanity check here and there.
>
> --Tony
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-devel
>
More information about the geeklog-devel
mailing list