method __construct documentation in bbn\User\Profile
connection constructor.
function(bbn\Db $db, bbn\User $user, array $cfg = [])
{
if ($tmp = $user->get_profile()) {
$this->id = $tmp['id'];
$this->id_group = $tmp['id_group'];
$this->id_user = $tmp['id_user'];
$this->db = $db;
$this->user = $user;
$this->cfg = bbn\X::mergeArrays(self::$default_class_cfg, $cfg);
}
return $this;
}
connection constructor. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions