Hi, everyone

There is such a code snippet.
/**************************************/
/* Simplified from Kyle's Plugin Developer Helper Plugin*/
/* PlugA.php */
class PlugA extends Plug
{
    function onStartPrimaryNav($action)
    {
        $hook = substr(__FUNCTION__, 2);
        $this->_printHook($hook, $action);
    }

    function _printHook($hook, $action)
    {
        $action->action->raw("\n<!--  $hook -->\n");
    }
}
/**************************************/

I think $action->raw("\n<!--  $hook -->\n"); is ok. Why it is 
$action->action->raw("\n<!--  $hook -->\n"); ?

I'm also a PHP newbie, so I hope you will not mind my strange questions. 

Regards,
Blue


      
_______________________________________________
StatusNet-dev mailing list
StatusNet-dev@lists.status.net
http://lists.status.net/mailman/listinfo/statusnet-dev

Reply via email to