object->method() chaining

From: Date: Tue, 06 Mar 2001 20:41:50 +0000
Subject: object->method() chaining
Groups: php.dev 
Request: Send a blank email to php-dev+get-48091@lists.php.net to get a copy of this message
I'm currently working on the DB project from h*ll. Why? Because a lot of the tables of the normalized DB are mapped into objects and PHP's object support questionable at best. I've worked around the lack of multiple inheritance, and some of the other problems. But the inability to do something as simple as: object->MethodThatReturnsAnotherObject()->method() is very troublesome I cannot express how error prone it is to have to create tons of temporary variables. I can already hear people saying stuff like: "Why don't you use the attribute (or variable) directly?" Because in most cases MethodThatReturnsAnotherObject() does work before it hands me the object, and it's important to my project. If someone has a good example of an object framework around a normalized database, I'd love to see it. Otherwise, can someone tell me where in the flipping PHP4 code is this limitation coded? Dislaimer: I'm irrate. This problem has been grating against me for 4 weeks straight now. I have a bug entered into the bug database: http://bugs.php.net/bugs.php?id=7515 I'd be happy to fix it if someone can point me to the right place. Ciao! -- installs Windows NT!" Orlando (on Slashdot) The Doctor What: "What, Doctor What" http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC

« previous php.dev (#48091) next »