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