static function PageCheckList($name, Page $page)
    {    
        $field = new CheckList($name);
        self::AddMembergroupOptions($field);
        $groupIDs = Membergroup::GetKeyList(self::PageMembergroups($page));
        $field->SetValue($groupIDs);
        return $field;
    }
static function PageCheckList($name, Page $page)
    {    
        $field = new CheckList($name);
        self::AddMembergroupOptions($field);
        $groupIDs = Membergroup::GetKeyList(self::PageMembergroups($page));
        $field->SetValue($groupIDs);
        return $field;
    }
static function PageCheckList ( $ name , Page $ page ) { $ field = new CheckList ( $ name ) ; self :: AddMembergroupOptions ( $ field ) ; $ groupIDs = Membergroup :: GetKeyList ( self :: PageMembergroups ( $ page ) ) ; $ field -> SetValue ( $ groupIDs ) ; return $ field ; }
Creates a check list field for groups of a page
@param string $name The field name
@param Page $page The page
@return CheckList Returns the check list
Creates a check list field for groups of a page