phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

The new config class

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.1/Ascreaus followed by 3.2/Arsia.

The new config class

Postby brunoais » Mon Apr 02, 2012 8:15 am

I was reading the wiki and then I found this page:
http://wiki.phpbb.com/PhpBB3.1/RFC/Config_Class
It explains how to work with the config class.

Question:
If the config class implements ArrayAccess, why does it need a method for setting?
If this is for backwards compatibility, why not have the set method and the ArrayAccess way (at least, it is not documented)
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Re: The new config class

Postby naderman » Thu Apr 19, 2012 1:47 am

It's to allow a second parameter which defines whether values are supposed to be cached or not.
www.naderman.de
Move your forum to Forumatic - we'll take care of maintenance & spam
User avatar
naderman
Development Team Leader
Development Team Leader
 
Posts: 1649
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany

Re: The new config class

Postby brunoais » Thu Apr 19, 2012 7:11 am

k, thx.
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm


Return to [3.x] Discussion

Who is online

Users browsing this forum: No registered users and 6 guests