Re: late static binding php6
| From: | Stanislav Malyshev | Date: | Mon, 19 Nov 2007 18:56:31 +0000 |
| Subject: | Re: late static binding php6 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33327@lists.php.net to get a copy of this message | ||
class A { static function find($id) { // lets try and find a 'something' } } class B extends A {} // I'd like a 'B' please bob. $b = B::find( 1 ); are you saying that A::find() can tell that it was called as B::find() ?Yes, this is exactly what LSB does. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com