src/bbn/user/preferences.php
private function _init_user(bbn\user $user): preferences
  {
    $this->user = $user;
    $this->id_user = $this->user->get_id();
    $this->id_group = $this->user->get_group();
    return $this;
  }
private function _init_user(bbn\user $user): preferences
  {
    $this->user = $user;
    $this->id_user = $this->user->get_id();
    $this->id_group = $this->user->get_group();
    return $this;
  }
private function _init_user ( bbn \ user $ user ) : preferences { $ this -> user = $ user ; $ this -> id_user = $ this -> user -> get_id ( ) ; $ this -> id_group = $ this -> user -> get_group ( ) ; return $ this ; }
Sets the user variables using a user object

@param bbn\user $user
@return preferences
Sets the user variables using a user object