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

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)    
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 : 33 - 19 = ?

 
 [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.

Comments

 [2006-01-28 19:01 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!