[Tickets #7988] Re: Fix __construct method

bugs at horde.org bugs at horde.org
Sun Feb 15 16:32:01 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7988
------------------------------------------------------------------------------
  Ticket             | 7988
  Updated By         | Duck <duck at obala.net>
  Summary            | Fix __construct method
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


Duck <duck at obala.net> (2009-02-15 11:32) wrote:

> The __construct method is protected because you should be using the
> singleton method to create these objects.

Then you should update other libraries as Group, where SessionObjects  
is directly created (see functions singleton and shutdown) and you get:

( ! ) Fatal error: Call to protected  
Horde_SessionObjects::__construct() from context 'Group' in  
/usr/share/php5/Horde/Group.php on line 682
Call Stack
#       Time    Memory  Function        Location
1       0,0014  85068   {main}( )       ../view.php:0
2       0,2281  2952388 Ansel_View_List->html( )        ../view.php:52
3       0,2288  2954888 Ansel_Storage->countGalleries( )         
../List.php:172
4       0,2288  2955820 Horde_Share_sql_hierarchical->countShares( )    
  ../Ansel.php:3698
5       0,2288  2956180  
Horde_Share_sql_hierarchical->_getShareCriteria( )       
../sql_hierarchical.php:580
6       0,2323  3104292 Group->singleton( )     ../sql_hierarchical.php:221






More information about the bugs mailing list