phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

[RFC|Merged] General Hook Architecture of phpBB3.1

These requests for comments have lead to an implemented feature that has been successfully merged into the 3.1/Ascraeus branch. Everything listed in this forum will be available in phpBB 3.1.

Re: [RFC|Accepted] General Hook Architecture of phpBB3.1

Postby MichaelC » Mon Mar 19, 2012 3:23 pm

I like naderman's new suggestion.

I'll also rename RUNHOOKS to EVENT now to get it done with.

Also if everyone agrees with naderman's implementation I'll change all existing events to use it.
Unknown Bliss
psoTFX wrote:I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"

No unsolicited PMs please except for quotes.
User avatar
MichaelC
Website Team
Website Team
 
Posts: 797
Joined: Thu Jan 28, 2010 6:29 pm

Re: [RFC|Accepted] General Hook Architecture of phpBB3.1

Postby nickvergessen » Mon Mar 19, 2012 3:28 pm

I liked the extract() on a new line more, as you saw $event at the line beginning which helps finding it, but aslong as its called something with events (nadermans latest suggestion) i'm also fine with it.
cheers nickvergessen :geek:
Member of phpBB Development-Team
No Support via PM — My MODs for phpBB 3.0.x
User avatar
nickvergessen
Development Team
Development Team
 
Posts: 350
Joined: Sun Oct 07, 2007 11:54 am
Location: Esslingen, Germany

Re: [RFC|Accepted] General Hook Architecture of phpBB3.1

Postby Oleg » Mon Mar 19, 2012 3:57 pm

(11:20:10) nn-: naderman: my only issue with that is people accidentally screwing up the magic bits
(11:20:31) nn-: but i guess all of *that* code will be reviewed by us making it potentially a non-issue
(11:21:17) nn-: oh just noticed method rename
(11:22:14) nn-: yes i wanted a different function name for the version that filters
(11:22:21) nn-: and potentially has a different api
(11:22:36) nn-: trigger_event seems to be a good choice
Oleg
3.1 Release Manager
3.1 Release Manager
 
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am

Re: [RFC|Accepted] General Hook Architecture of phpBB3.1

Postby igorw » Tue Mar 20, 2012 9:35 am

I personally prefer the initial more explicit version, but renaming the special method to something other than `dispatch` addresses my main concern of changing the semantics.
User avatar
igorw
Registered User
 
Posts: 500
Joined: Thu Jan 04, 2007 11:47 pm

Re: [RFC|Accepted] General Hook Architecture of phpBB3.1

Postby MichaelC » Tue Mar 20, 2012 2:26 pm

RUNHOOKS is now EVENT

All php events have been updated to naderman's suggestion and all template hooks to EVENT
Unknown Bliss
psoTFX wrote:I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"

No unsolicited PMs please except for quotes.
User avatar
MichaelC
Website Team
Website Team
 
Posts: 797
Joined: Thu Jan 28, 2010 6:29 pm

Re: [RFC|Accepted] General Hook Architecture of phpBB3.1

Postby nickvergessen » Fri Mar 23, 2012 2:07 pm

On question that came up recently is, who we are going to deal with hooks while installing/updating(3.1.0 to 3.1.1) the board.
F.e. when we add a user it might be good to have the hooks running.
cheers nickvergessen :geek:
Member of phpBB Development-Team
No Support via PM — My MODs for phpBB 3.0.x
User avatar
nickvergessen
Development Team
Development Team
 
Posts: 350
Joined: Sun Oct 07, 2007 11:54 am
Location: Esslingen, Germany

Re: [RFC|Accepted] General Hook Architecture of phpBB3.1

Postby MichaelC » Fri Mar 23, 2012 3:02 pm

nickvergessen wrote:On question that came up recently is, who we are going to deal with hooks while installing/updating(3.1.0 to 3.1.1) the board.
F.e. when we add a user it might be good to have the hooks running.


Why would you add a user with updating? Personally I think its a bad idea allowing hooks to run while updating.
Unknown Bliss
psoTFX wrote:I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"

No unsolicited PMs please except for quotes.
User avatar
MichaelC
Website Team
Website Team
 
Posts: 797
Joined: Thu Jan 28, 2010 6:29 pm

Re: [RFC|Accepted] General Hook Architecture of phpBB3.1

Postby nickvergessen » Fri Mar 23, 2012 3:22 pm

Well we added some bots latly and when we add a bot we call user_add ;)
cheers nickvergessen :geek:
Member of phpBB Development-Team
No Support via PM — My MODs for phpBB 3.0.x
User avatar
nickvergessen
Development Team
Development Team
 
Posts: 350
Joined: Sun Oct 07, 2007 11:54 am
Location: Esslingen, Germany

Re: [RFC|Accepted] General Hook Architecture of phpBB3.1

Postby Oleg » Fri Mar 23, 2012 4:31 pm

Oleg
3.1 Release Manager
3.1 Release Manager
 
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am

Re: [RFC|Accepted] General Hook Architecture of phpBB3.1

Postby Oleg » Sat Mar 24, 2012 3:45 am

Unknown Bliss wrote:We have a core. prefix for php ledges but not for template ledges. I propose we have a core_ prefix for template ledges.

Thoughts?

Was this done? If not I'm inclined to agree to add core_ for template events.
Oleg
3.1 Release Manager
3.1 Release Manager
 
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am

Previous Next

Return to [3.1/Ascraeus] Merged RFCs

Who is online

Users browsing this forum: Exabot [Bot] and 7 guests

cron