public static function create_from_userlist(userlist $userlist) : approved_userlist {
        $newlist = new static($userlist->get_context(), $userlist->get_component(), $userlist->get_userids());

        return $newlist;
    }
public static function create_from_userlist(userlist $userlist) : approved_userlist {
        $newlist = new static($userlist->get_context(), $userlist->get_component(), $userlist->get_userids());

        return $newlist;
    }
public static function create_from_userlist ( userlist $ userlist ) : approved_userlist { $ newlist = new static ( $ userlist -> get_context ( ) , $ userlist -> get_component ( ) , $ userlist -> get_userids ( ) ) ; return $ newlist ; }
Create an approved userlist from a userlist.

@param   userlist        $userlist The source list
@return  approved_userlist   The newly created approved userlist.
Create an approved userlist from a userlist .