Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 private function SaveGroups()
 {
     $exGroupIDs = Membergroup::GetKeyList(MembergroupUtil::MemberMembergroups($this->member));
     $selGroupIDs = Request::PostArray('MemberGroup');
     $this->DeleteOldGroups($selGroupIDs);
     $this->SaveNewGroups($exGroupIDs, $selGroupIDs);
 }