1
Hi,
In the directory call kernel, why there is only one class XoopsUser whitch implement the constructor with the id : XoopsUser($id = null).
$user = new XoopsUser($id);
The others classes use the handler to make the instanciation :
example with privmessage:
$pm_handler =& xoops_gethandler('privmessage');
$pm =& $pm_handler->get($idmsg);
why there is no function in XoopsPrivmessage called XoopsPrivmessage($id = null).
Is it the volontary to be closest from the factory pattern ?
Why there is this différentes between user and the other kernel classes ? To you think it is a good think ?
Thank for your response .