public static function get_dpo_role_names() : array {
        global $DB;

        $dporoleids = self::get_assigned_privacy_officer_roles();
        $dponames = array();

        if (!empty($dporoleids)) {
            list($insql, $inparams) = $DB->get_in_or_equal($dporoleids);
            $dponames = $DB->get_fieldset_select('role', 'shortname', "id {$insql}", $inparams);
        }

        return $dponames;
    }
public static function get_dpo_role_names() : array {
        global $DB;

        $dporoleids = self::get_assigned_privacy_officer_roles();
        $dponames = array();

        if (!empty($dporoleids)) {
            list($insql, $inparams) = $DB->get_in_or_equal($dporoleids);
            $dponames = $DB->get_fieldset_select('role', 'shortname', "id {$insql}", $inparams);
        }

        return $dponames;
    }
public static function get_dpo_role_names ( ) : array { global $ DB ; $ dporoleids = self :: get_assigned_privacy_officer_roles ( ) ; $ dponames = array ( ) ; if ( ! empty ( $ dporoleids ) ) { list ( $ insql , $ inparams ) = $ DB -> get_in_or_equal ( $ dporoleids ) ; $ dponames = $ DB -> get_fieldset_select ( 'role' , 'shortname' , "id {$insql}" , $ inparams ) ; } return $ dponames ; }
Fetches the role shortnames of Data Protection Officer roles.

@return array An array of the DPO role shortnames
Fetches the role shortnames of Data Protection Officer roles .