Hi, everyone
Let's us suppose we have a event handler as following.
/****************************************/
//plugina.php
......
class PluginA extends Plugin
{
function onStartPrimaryNav($action)
{
return true;
}
}
......
/****************************************/
When we browser http://localhost/statusnet/index.php/actionx, the $action is an
ActionX object. The ActionX object has a unique method methodx().
When we browser http://localhost/statusnet/index.php/actiony, the $action is an
ActionY object. The ActionY object has a unique method methody().
If we write the event handler as following, what will happen?
/****************************************/
//plugina.php
......
class PluginA extends Plugin
{
function onStartPrimaryNav($action)
{
$action->methodx();
$action->methody();
return true;
}
}
......
/****************************************/
Is my suppose possible? Is my suppose reasonable?
I'm a newbie in StatusNet, so I hope you will not mind my strange questions.
Regards,
Blue
_______________________________________________
StatusNet-dev mailing list
[email protected]
http://lists.status.net/mailman/listinfo/statusnet-dev