public function getAdminMembers($force = false) : CNabuUserGroupMemberList
    {
        $this->getMembers($force);
        $nb_admin_list = new CNabuUserGroupMemberList();

        $this->nb_user_group_member_list->iterate(
            function($key, CNabuUserGroupMember $nb_user_group_member) use ($nb_admin_list)
            {
                if ($nb_user_group_member->getAdmin() === 'T' && $nb_user_group_member->getStatus() === 'E') {
                    $nb_admin_list->addItem($nb_user_group_member);
                }
                return true;
            }
        );

        return $nb_admin_list;
    }
public function getAdminMembers($force = false) : CNabuUserGroupMemberList
    {
        $this->getMembers($force);
        $nb_admin_list = new CNabuUserGroupMemberList();

        $this->nb_user_group_member_list->iterate(
            function($key, CNabuUserGroupMember $nb_user_group_member) use ($nb_admin_list)
            {
                if ($nb_user_group_member->getAdmin() === 'T' && $nb_user_group_member->getStatus() === 'E') {
                    $nb_admin_list->addItem($nb_user_group_member);
                }
                return true;
            }
        );

        return $nb_admin_list;
    }
public function getAdminMembers ( $ force = false ) : CNabuUserGroupMemberList { $ this -> getMembers ( $ force ) ; $ nb_admin_list = new CNabuUserGroupMemberList ( ) ; $ this -> nb_user_group_member_list -> iterate ( function ( $ key , CNabuUserGroupMember $ nb_user_group_member ) use ( $ nb_admin_list ) { if ( $ nb_user_group_member -> getAdmin ( ) === 'T' && $ nb_user_group_member -> getStatus ( ) === 'E' ) { $ nb_admin_list -> addItem ( $ nb_user_group_member ) ; } return true ; } ) ; return $ nb_admin_list ; }
Returns the full list of admin members in the group.
@param bool $force If true, then force to reload from database the full list.
@return CNabuUserGroupMemberList Return an list with all members found.
Returns the full list of admin members in the group .