Req #15953 [Opn->Dup]: Method Chaining

From: Date: Fri, 27 Feb 2009 03:39:52 +0000
Subject: Req #15953 [Opn->Dup]: Method Chaining
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-80@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=15953&edit=1 ID: 15953 Updated by: daniel.oconnor@gmail.com Reported By: mtinsley at dallasairmotive dot com Summary: Method Chaining -Status: Open +Status: Duplicate Type: Feature/Change Request Package: HTML_Template_Flexy Operating System: RedHat 5.3 PHP Version: 5.2.4 Roadmap Versions: New Comment: <div id="changeset"> <span class="removed">-Status: Open</span> <span class="added">+Status: Duplicate</span> </div> Previous Comments: ------------------------------------------------------------------------ [2009-02-26 20:38:20] mtinsley Description: ------------ Flexy does not currently support the PHP 5 feature: method chaining. I would like support added. Test script: --------------- <?php class Sister { function getName() { return 'Atheani Incomptos'; } } class Brother { var $Sister; function __construct() { $this->Sister = new Sister(); } function getSister() { return $this->Sister(); } } ?> <?php $MyFlexyObj->Brother = new Brother(); // compile ?> TEMPLATE {Brother.getSister().getName()} Expected result: ---------------- Atheani Incomptos Actual result: -------------- HTML_Template_Flexy fatal error:HTML_Template_Flexy::Syntax error in ". "Template line:3<PRE>ERROR in File /home/www/pws/tu/warr//modules/views/emails/orphan/warrantyRegistrations.html on Line 3 Position:153: unexpected something: ()) character: 0x29 {Brother.getSister() ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=15953&edit=1

« previous php.pear.bugs (#80) next »