We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Soon to be private vars & functions

Developer Preview

Dom Stubbs's avatar
Dom Stubbs
156 posts
14 years ago
Dom Stubbs's avatar Dom Stubbs

Following on from Greg’s comments in the blog post it seems like it could be a good idea to have a thread specifically for getter/setter requests for future releases.

For my part there’s one particular variable that I’d like to continue to be able to read, namely $_map within the EE_Addons class. My Switchboard CP search addon uses this var to quickly determine which addons are currently installed and it also plays a key part in my caching mechanism, which stores processed addon data in the DB and refreshes it whenever the contents of the $_map var is modified. Without access to $_map I’ll need to generate my own array of installed addons which will add significant overhead and impact performance. I appreciate that this probably doesn’t impact anyone else but all the same it’d be extremely useful to me if I could continue to access this array in some way.

(Thanks for the dev preview and for the opportunity to provide feedback, it’s much appreciated.)

       
Wes Baker's avatar
Wes Baker
343 posts
14 years ago
Wes Baker's avatar Wes Baker

Dom,

We won’t be able to add this to 2.2, but I’ll make sure we talk about it to see if we want to add it to a future release.

Wes

       
Dom Stubbs's avatar
Dom Stubbs
156 posts
14 years ago
Dom Stubbs's avatar Dom Stubbs

Thanks Wes, I appreciate it. The var in question is still publicly accessible in the 2.2 beta and Switchboard runs as normal, so the status quo suits me just fine for the time being. I just wanted to flag this up in the hope that it will continue to be accessible in some manner, or that I could get a bit of a heads-up if it was going to be made private in an imminent release.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.