public static function get_request_status_string($status) {
        $statuses = self::get_request_statuses();
        if (!isset($statuses[$status])) {
            throw new moodle_exception('errorinvalidrequeststatus', 'tool_dataprivacy');
        }

        return $statuses[$status];
    }
public static function get_request_status_string($status) {
        $statuses = self::get_request_statuses();
        if (!isset($statuses[$status])) {
            throw new moodle_exception('errorinvalidrequeststatus', 'tool_dataprivacy');
        }

        return $statuses[$status];
    }
public static function get_request_status_string ( $ status ) { $ statuses = self :: get_request_statuses ( ) ; if ( ! isset ( $ statuses [ $ status ] ) ) { throw new moodle_exception ( 'errorinvalidrequeststatus' , 'tool_dataprivacy' ) ; } return $ statuses [ $ status ] ; }
Retrieves the human-readable value of a data request status.

@param int $status The request status.
@return string
@throws moodle_exception
Retrieves the human - readable value of a data request status .