However, my post today will be on the RFC suggestion for built in getters/setters. To keep it blunt, I really dislike the C# approach... it's, just not very PHP. Just seems odd to have floating curly blocks with a "get" and "set" in it, with no real defined scope block. On top of that, the "property" keyword is way too complicated for what it is trying to achieve. The one thing I do agree with though, is the readonly modifier. My suggestion is loosely based on the Traceur Compiler by Google syntax (they use get/set keywords instead of function, within the class). Continue reading...
AutoLogin
A CakePHP Component that will automatically login the Auth session for a duration if the user requested to (saves data to cookies).
Entries for Getter
Getters and Setters are the backbone of many PHP classes (or any programming language class), as they allow you to alter and retrieve class properties during runtime. Many well thought and powerful scripts and frameworks make use of Getters and Setters, but is there a thing as too much? Or are there better and easier alternatives? Continue reading...
Popular Entries
Topics
- CakePHP (60)
- Code (19)
- Entertainment (2)
- Gaming (4)
- HTML & CSS (1)
- Javascript (6)
- jQuery (7)
- MySQL (1)
- Other (11)
- Personal (15)
- PHP (24)
- Plugins (5)
- Programming (9)
- Resources (13)
- Reviews (1)
- Tutorials (46)