Welcome Guest, Not a member yet? Register   Sign In
To use variable accessors, or not to use, that's my question :)
#6

[eluser]dmitrybelyakov[/eluser]
[quote author="bullspit" date="1239216366"]I noticed most of CI code doesn't protect class variables and access with var accessors, is that the recommended way to go with CI?

Thanks[/quote]

It is completely up to you. As in any other cases. I personally prefer to incapsulate class functionality and leave space for improvement and extension. If you use it you'll be surprised how useful it might appear when refactoring your code.


Messages In This Thread
To use variable accessors, or not to use, that's my question :) - by El Forum - 04-08-2009, 02:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB