Is there are way to get __callStatic, or similar, functionality in PHP 5.2?
I'm finishing a PHP Framework and need to use this functionality for a Database ORM class. So for example you can use the code below to get data from column 2 and column 4 of the database table i.e. by declaring methods dynamically according to what you want (like rails I guess).
Class::find_by_col2_or_col4();
I have already done this in PHP 5.3 and it works perfectly, but I'm trying to do the same for those using PHP 5.2.
Or is there some other way to retrieve the name of the static method and arguments using PHP 5.2?
Thanks.