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

Request #6039 setFrontendObject needed to allow objects passed
Submitted: 2005-11-23 08:15 UTC
From: cweiske at cweiske dot de Assigned: cellog
Status: Closed Package: PEAR
PHP Version: Irrelevant OS: any
Roadmaps: (Not assigned)    
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:
Solve the problem : 6 + 3 = ?

 [2005-11-23 08:15 UTC] cweiske at cweiske dot de
Description: ------------ After noting that I need to implement some methods and set my application as the UI output driver, I'm going to set an object as PEAR_Frontend. One problem is that PEAR_Frontend only allows one to pass a class name, but not an already instantiated object - that's very bad if you already have an object you want to use, or you have to create the object via a factory or a singleton method. So I suggest that PEAR_Frontend#setFrontendClass($uiclass) allows one to pass an object (additional to the class thing) which is set as _PEAR_FRONTEND_SINGLETON, so that one can rely on the method and doesn't have to set the global variable himself.


 [2006-01-28 19:01 UTC] cellog
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. This is implemented with a new method "setFrontendObject" I can't believe it took me 2 months to figure out this solution :)