function(bbn\Db $db)
{
$user = \bbn\User::getInstance();
$this->id_user = $user ? $user->getId() : null;
if (defined('BBN_EXTERNAL_USER_ID') && ($this->id_user === BBN_EXTERNAL_USER_ID)) {
$this->id_user = null;
}
parent::__construct($db);
}