Ok, as far as I see Overloadable2 is used basically when you need auto- magically generated getters and setters.
So is just a bad decision in the class name :) Thank you Mark On Aug 25, 8:10 pm, mark_story <[email protected]> wrote: > I don't think its deprecated. The JsHelper in 1.2 uses it and like > Overloadable it provides a base class that has PHP5 magic methods to > PHP4. Overloadable2 provides __set, __get and __call instead of just > __call. That's the only difference, they have the same basic use > really. > > -Mark > > On Aug 25, 7:34 am, Biaggi <[email protected]> wrote: > > > I know what overloadable does and how, but what can you tell me about > > the Overloadable2 class inside the files overloadable_php[4|5].php? > > What is that class for? is deprecated? > > > On 24 ago, 19:39, mark_story <[email protected]> wrote: > > > > The key to Overloadable and Overloadable lies in the php4 versions of > > > the files. Basically both classes serve as workarounds for PHP4's > > > lack of magic methods. By using overload() you can add magic methods > > > into PHP4 classes. So the overloadable classes are the base classes > > > for all objects that have magic methods. > > > > -Mark > > > > On Aug 24, 6:28 am, Biaggi <[email protected]> wrote: > > > > > I've been looking for a use of this class but i cant find any > > > > changeset or documentation about the need of that class or what the > > > > class resolves. > > > > > The main diference between class Overloadable and Overloadable2 are > > > > the __get and __set functions, this functions appears in commit [3957] > > > > and seems to be fully deprecated. > > > > > So, someone knows why the class Overloadable2 appears in the > > > > Overloadable_php4.php and Overloadable_php5.php files. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
