ACL and Reflection

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: ACL and Reflection

Post by josh »

Definitely, from the sounds of it it would wipe out most of your readability also
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: ACL and Reflection

Post by VladSun »

An implementation, regarding this discussion, needs your comments and criticism :)
viewtopic.php?f=50&t=89528
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: ACL and Reflection

Post by VladSun »

jshpro2 wrote:After reading some of the suggestions you guys posted the one I like best is having each property be accessed through an object that encapsulates field specific ACL rules, I'm going to toy around with the idea of doing something like this for my applications but implementing it as a generic 'data gateway' and having the field specific ACL checks register themselves as hooks to be run pre and post property access, that inverts control and also allows more access checks to be added later besides plain vanilla ACL (in case I think of something later). Not entirely necessary per se to solve the problem but it seems to be the right thing to do to me
Any progress on that one? :)
There are 10 types of people in this world, those who understand binary and those who don't
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: ACL and Reflection

Post by josh »

Nope. Been wrapped up in learning TDD and reading and re-reading Martin Fowler's "Analysis Patterns".

Also it was mentioned previously the decorator should sit outside of the model. I agree. The model would have to fire the events though, to properly encapsulate your event firing logic. Also I've been without internet for a good few days *gasp*
Post Reply