[dokuwiki] Re: Doku Event and Hooks

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 18 Dec 2007 16:14:25 +0000

Danjer wrote:
> Hi all,
>
> I have a small question about events and trigger's action. Why the
> action's data is not accessible from the event's hook ?
>
> By example with somethings like this in inc/events.php :
>
> function process_event(&$event,$advise='') {
>
>    ...
>        if (is_null($obj)) {
> //        $method($event, $param);
>          $method($event, $param, $this->data);
>        } else {
> //          $obj->$method($event, $param);
>          $obj->$method($event, $param, $this->data);
>        }
>    ...
>  }
>
>
> I just look for a way to read theses data from the event's hook.
>
> Best Regards,
> Danjer
Its accessible via $event->data, see
http://wiki.splitbrain.org/wiki:events#event_object

-- Chris
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: