private static function AddMembergroupOptions(CheckList $field)
    {
        $sql = Access::SqlBuilder();
        $tbl = Membergroup::Schema()->Table();
        $orderBy = $sql->OrderList($sql->OrderAsc($tbl->Field('Name')));
        $groups = Membergroup::Schema()->Fetch(false, null, $orderBy);
        foreach ($groups as $group)
        {
            $field->AddOption($group->GetID(), $group->GetName());
        }
    }
private static function AddMembergroupOptions(CheckList $field)
    {
        $sql = Access::SqlBuilder();
        $tbl = Membergroup::Schema()->Table();
        $orderBy = $sql->OrderList($sql->OrderAsc($tbl->Field('Name')));
        $groups = Membergroup::Schema()->Fetch(false, null, $orderBy);
        foreach ($groups as $group)
        {
            $field->AddOption($group->GetID(), $group->GetName());
        }
    }
private static function AddMembergroupOptions ( CheckList $ field ) { $ sql = Access :: SqlBuilder ( ) ; $ tbl = Membergroup :: Schema ( ) -> Table ( ) ; $ orderBy = $ sql -> OrderList ( $ sql -> OrderAsc ( $ tbl -> Field ( 'Name' ) ) ) ; $ groups = Membergroup :: Schema ( ) -> Fetch ( false , null , $ orderBy ) ; foreach ( $ groups as $ group ) { $ field -> AddOption ( $ group -> GetID ( ) , $ group -> GetName ( ) ) ; } }
Adds the member group options to the checklist
@param CheckList $field
Adds the member group options to the checklist