Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.4

Request #14979 Fluent interface for setOption()
Submitted: 2008-11-09 19:50 UTC
From: quipo Assigned: quipo
Status: Closed Package: Translation2 (version 2.0.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 16 - 1 = ?

 
 [2008-11-09 19:50 UTC] quipo (Lorenzo Alberton)
Description: ------------ Got this email: ---------------------------- I have this request: If the setOption() method would return $this, then it would be possible to chain setOption() calls, sort of like this: $hdlTranslation = Translation2::factory('MDB2', $hdlDb, $arrTr2Params) ->getDecorator('CacheLiteFunction') ->getDecorator('Lang') ->setOption('lifeTime', 3600*24) ->setOption('fileLocking', false);

Comments

 [2008-11-09 19:58 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.