Re: [PHP] Re: PHP5: __call() implementation EXAMPLE

2004-02-05 Thread Vivian Steller
John W. Holmes wrote: > From: "Vivian Steller" <[EMAIL PROTECTED]> > >> Vivian Steller wrote: >> ... >> >> > class MyClass { >> function __call($method, $params) { >> // $params = Array(mixed var, mixed var, ...); >> print("

[PHP] Re: PHP5: __call() implementation EXAMPLE

2004-02-05 Thread Vivian Steller
Vivian Steller wrote: ... > class MyClass { >function __call($method, $params) { > // $params = Array(mixed var, mixed var, ...); > print("request for " . $method . "()\n"); > > // how to get objects in this string?! > // do i have to implement "

Re: [PHP] Re: PHP5: __call() implementation EXAMPLE

2004-02-05 Thread John W. Holmes
From: "Vivian Steller" <[EMAIL PROTECTED]> > Vivian Steller wrote: > > > Hello, > > > > as you know there is a new callback function __call($method, $params) in > > php5. the __call() method of an object is called, if the method named > > $method is not declared in this class. > > > > i want this

[PHP] Re: PHP5: __call() implementation EXAMPLE

2004-02-05 Thread Vivian Steller
Vivian Steller wrote: > Hello, > > as you know there is a new callback function __call($method, $params) in > php5. the __call() method of an object is called, if the method named > $method is not declared in this class. > > i want this function simply call the method of another class with > "So