Well, for instance, you could have the __get and __set functions execute a
SQL query or go to a file or whatever. The point, as it seems to me anyway,
is to enable a potentially complex internal implementation be exposed with a
simple interface. Now as for the implications of that, it's debatable.
What is the point of overloading an object again?
> Hello,
>
> I realize this stuff isn't set in stone yet, but might I eventually
> expect the following to make two assignments rather than one?
>
>
> class overload_test
> {
>function __set($name, $value) {
>echo "__set($name, $value)
2 matches
Mail list logo