/** * The groups of the current member * @return Membergroup[] Returns the groups of the current member */ private function Groups() { if ($this->groups === null) { $this->groups = array(); if ($this->GetMember()) { $this->groups = MembergroupUtil::MemberMembergroups($this->GetMember()); } } return $this->groups; }
private function SaveGroups() { $exGroupIDs = Membergroup::GetKeyList(MembergroupUtil::MemberMembergroups($this->member)); $selGroupIDs = Request::PostArray('MemberGroup'); $this->DeleteOldGroups($selGroupIDs); $this->SaveNewGroups($exGroupIDs, $selGroupIDs); }