If you're in a class you could use __call to override all your methods:

class Wrapper
{
        public function __call($method, $args=array())
        {
                // figure out if any of $args needs to be
                // created - possibly do this via reflection
                
                $privateMethod = '_' . $method;

                return $this->$privateMethod($args[0], ...);
                
        }
        
        private function _doSomething(Class $class)
        {

        }
}

Seems like overkill unless you were going to have lots of methods
where you want to do this.

Rory

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to