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)    

 [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);


 [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 by the end of next Sunday (CET). If this was a problem with the 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.