That looks wrong; the Action class is a subclass of HTMLOutputter, which
has a raw() method. You should be able to do $action->raw(). I think
Kyle might have a typo there.
-Evan
On Sun, 2010-11-07 at 10:56 +0800, 橡树 wrote:
> 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
--
Evan Prodromou, CEO, StatusNet Inc.
1124 rue Marie-Anne Est #32, Montreal, QC, Canada H2J 2B7
E: e...@status.net T: 438-380-4801 x101 W: http://evan.status.net/
_______________________________________________
StatusNet-dev mailing list
StatusNet-dev@lists.status.net
http://lists.status.net/mailman/listinfo/statusnet-dev