Partial update for J1.5 events

Submit your own tutorials, guides and API documents for inclussion in the Official Developer Documentation.
Locked
User avatar
instance
Joomla! Explorer
Joomla! Explorer
Posts: 302
Joined: Mon Nov 13, 2006 11:31 am
Location: Toronto, Canada

Partial update for J1.5 events

Post by instance » Wed Dec 20, 2006 7:25 pm

Attached zip has wiki format updates to J1.5 system and user events, plus an alphabetical event index. (I hope I got the markup right, I just guessed based on what was there).

I'll try to get to the other events later.
You do not have the required permissions to view the files attached to this post.
==> Please do not PM me for support issues. <==
Alan Langford -- Joomla Security Strike Team, Extension Developer, Hosting Guy
Biz: http://www.abivia.net
Blog: http://www.ambitonline.com/nextrelease

User avatar
Chris Davenport
Joomla! Ace
Joomla! Ace
Posts: 1370
Joined: Thu Aug 18, 2005 8:57 am
Location: Shrewsbury, Shropshire, United Kingdom

Re: Partial update for J1.5 events

Post by Chris Davenport » Wed Dec 20, 2006 10:06 pm

Hi instance,

Excellent work, it is much appreciated.  I have amended the wiki appropriately.

Thank you and keep 'em coming.  :)

Regards,
Chris.
Chris Davenport

Davenport Technology Services http://www.davenporttechnology.com/
Lion Coppice http://www.lioncoppice.org/

User avatar
instance
Joomla! Explorer
Joomla! Explorer
Posts: 302
Joined: Mon Nov 13, 2006 11:31 am
Location: Toronto, Canada

Re: Partial update for J1.5 events

Post by instance » Thu Dec 21, 2006 4:58 am

Here's the next (and probably final) update. This covers all the events (except those related to the back-end editor) in detail. I've made every attempt to get it right, but I've also corrected a large number of errors and faulty assumptions that I made in earlier passes, a humbling experience.

I simply didn't have time to dig into the "editor" events, and since they're not particularly relevant to my work, I'm not likely to return to them.

I also tried to get the headers consistent (and numbered correctly -- what a pain!), the formatting correct, and the language clear (my Canadian spelling will be less at odds with the rest of the documentation than if I was south of the border ;)), but working blind like this I am sure there are errors. As with most writing, and editor's eye will be required.
You do not have the required permissions to view the files attached to this post.
==> Please do not PM me for support issues. <==
Alan Langford -- Joomla Security Strike Team, Extension Developer, Hosting Guy
Biz: http://www.abivia.net
Blog: http://www.ambitonline.com/nextrelease

User avatar
Chris Davenport
Joomla! Ace
Joomla! Ace
Posts: 1370
Joined: Thu Aug 18, 2005 8:57 am
Location: Shrewsbury, Shropshire, United Kingdom

Re: Partial update for J1.5 events

Post by Chris Davenport » Thu Dec 21, 2006 3:41 pm

Hi instance,

I have updated the wiki.
instance wrote: As with most writing, and editor's eye will be required.
Very little editing was required.  Well done!  ;D

This work is very much appreciated.  Thank you.

Regards,
Chris.
Chris Davenport

Davenport Technology Services http://www.davenporttechnology.com/
Lion Coppice http://www.lioncoppice.org/

User avatar
instance
Joomla! Explorer
Joomla! Explorer
Posts: 302
Joined: Mon Nov 13, 2006 11:31 am
Location: Toronto, Canada

Re: Partial update for J1.5 events

Post by instance » Thu Dec 21, 2006 4:47 pm

Of course, one read on the wiki and I find errors. Typical!
This topic is aimed at the events which are called within every page load.
Would be accurate if it read:
This topic is aimed at "global" system events, including those triggered on every page load (onBeforeStart, onAfterStart); those supporting search within multiple plugins (onSearch, onSearchAreas), and those supporting the presentation of web services (onGetWebServices).
Sorry, but I detest even slightly misleading documentation, especially when I wrote it.

This section also needs an explanation of the "legacy" versus "new" event handling mechanisms. The "new" model passes a parameter called ['event'] in an associative array to the update() method of an object that is derived from JPlugin. The update method then invokes a method with the same name as the event name, if it exists. This makes it possible to encapsulate plugins in a class. $mainframe->triggerEvent() uses the JEventDispatcher singleton to either call a function (old style) or the update() method of an object that's listed as an observer. So the old method still works but the new method is preferable for new plugins.

An explanation of the whole observer mechanism would be nice too, but I don't have my head around that -- yet!
==> Please do not PM me for support issues. <==
Alan Langford -- Joomla Security Strike Team, Extension Developer, Hosting Guy
Biz: http://www.abivia.net
Blog: http://www.ambitonline.com/nextrelease

User avatar
Chris Davenport
Joomla! Ace
Joomla! Ace
Posts: 1370
Joined: Thu Aug 18, 2005 8:57 am
Location: Shrewsbury, Shropshire, United Kingdom

Re: Partial update for J1.5 events

Post by Chris Davenport » Sat Dec 23, 2006 9:42 pm

Thanks instance,

I've applied your amendment and also spent a bit of time improving other parts of the text.

Thanks again for your contribution.

Regards,
Chris.
Chris Davenport

Davenport Technology Services http://www.davenporttechnology.com/
Lion Coppice http://www.lioncoppice.org/


Locked

Return to “Submit”