public function getMembers() { if ($this->members == array()) { $this->members = DinklyUserGroupCollection::getUsersByGroup($this->db, $this->getId()); } return $this->members; }
public function getGroups() { if ($this->groups == array()) { $this->groups = DinklyUserGroupCollection::getGroupsByUser($this->db, $this->getId()); } return $this->groups; }