Beispiel #1
0
 public function get_leaders()
 {
     $members = $this->members->fetch();
     $roles = \Impro\Team\Member\Role::get_manager_roles();
     $people = array();
     foreach ($members as $member) {
         foreach ($member->roles as $role) {
             if (in_array($role, $roles)) {
                 $people[] = $member;
                 break;
             }
         }
     }
     return $people;
 }