"re-added (depricated) php4 constructor, as it get's called by some old apps"

This commit is contained in:
Ralf Becker 2009-05-26 17:27:17 +00:00
parent 28ea1bb74c
commit 77d42d1ef8

View File

@ -46,7 +46,7 @@ class hooks
/**
* constructor, reads and caches the complete hooks table
*
* @param object $db=null database class, if null we use $GLOBALS['egw']->db
* @param egw_db $db=null database class, if null we use $GLOBALS['egw']->db
*/
function __construct($db=null)
{
@ -59,6 +59,17 @@ class hooks
//_debug_array($this->found_hooks);
}
/**
* php4 constructor
*
* @param egw_db $db
* @deprecated use __construct()
*/
function hooks($db=null)
{
self::__construct();
}
/**
* executes all the hooks (the user has rights to) for a given location
*