Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12169 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20404 invoked by uid 1010); 14 Aug 2004 17:39:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20327 invoked from network); 14 Aug 2004 17:39:06 -0000 Received: from unknown (HELO theta.altoona-pa.com) (209.161.72.28) by pb1.pair.com with SMTP; 14 Aug 2004 17:39:06 -0000 Received: from IONZOFT-JEG (dpvc-207-68-114-163.alt.east.verizon.net [207.68.114.163]) by theta.altoona-pa.com (Postfix) with ESMTP id A9A9A15702 for ; Sat, 14 Aug 2004 13:39:05 -0400 (EDT) Date: Sat, 14 Aug 2004 13:39:13 -0400 X-Mailer: The Bat! (v2.11.02) Business Reply-To: Jason Garber Organization: IonZoft, Inc. X-Priority: 3 (Normal) Message-ID: <1476747332.20040814133913@ionzoft.com> To: internals@lists.php.net In-Reply-To: <200408132259.i7DMxiE21103@ostrowski.cc> References: <200408132259.i7DMxiE21103@ostrowski.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Method/Function chaining? From: jason@ionzoft.com (Jason Garber) Hello Dan, The answer that you are looking for can be found on the Zend site: http://www.zend.com/php5/articles/engine2-php5-changes.php#Heading13 -- Best regards, Jason mailto:jason@ionzoft.com Friday, August 13, 2004, 6:59:44 PM, you wrote: DO> Hello. DO> Excuse my ignorance on this, but I can't seem to find the answer I'm DO> looking for online... Will PHP5 be able to do "chaining" as some other DO> languages are able to do? DO> In other words... DO> ------------------------------ DO> class A DO> { DO> function A() { print "made an A...
\n"; } DO> function getB() { return new B(); } DO> } DO> class B DO> { DO> function B() { print "made a B...
\n"; } DO> function shout() { print "hey!!"; } DO> } DO> $a = &new A(); $a->>getB()->shout(); ?>> DO> ---------------------------- DO> This kind of polymorphism is something I'm used to, and I'm hoping it DO> won't result in a parse error in PHP5. =) DO> -- DO> Dan Ostrowski