Esempio n. 1
0
 /**
  * Refresh the User and their associated Groups from the DB.
  *
  * @see DatabaseInterface
  */
 public function fresh()
 {
     // Update table and column info, in case it has changed
     $this->_table = static::$tables['user'];
     $user = new User(parent::fresh(), $this->_id);
     $user->_groups = $this->fetchGroups();
     $user->_primary_group = $this->fetchPrimaryGroup();
     return $user;
 }
Esempio n. 2
0
 public function fresh()
 {
     $bud = new MySqlBud(parent::fresh(), $this->_id);
     $bud->_users = $this->fetchUsers();
     return $bud;
 }
Esempio n. 3
0
 public function fresh()
 {
     $pbidea = new MySqlPBidea(parent::fresh(), $this->_id);
     $pbidea->_pbidea = $this->fetchPBideas();
     return $pbidea;
 }
Esempio n. 4
0
 public function fresh()
 {
     $osi = new MySqlOsi(parent::fresh(), $this->_id);
     $osi->_users = $this->fetchUsers();
     return $osi;
 }