public static function get_request_filter_options() {
        $filters = [
            self::FILTER_TYPE => (object)[
                'name' => get_string('requesttype', 'tool_dataprivacy'),
                'options' => self::get_request_types_short()
            ],
            self::FILTER_STATUS => (object)[
                'name' => get_string('requeststatus', 'tool_dataprivacy'),
                'options' => self::get_request_statuses()
            ],
            self::FILTER_CREATION => (object)[
                'name' => get_string('requestcreation', 'tool_dataprivacy'),
                'options' => self::get_request_creation_methods()
            ],
        ];
        $options = [];
        foreach ($filters as $category => $filtercategory) {
            foreach ($filtercategory->options as $key => $name) {
                $option = (object)[
                    'category' => $filtercategory->name,
                    'name' => $name
                ];
                $options["{$category}:{$key}"] = get_string('filteroption', 'tool_dataprivacy', $option);
            }
        }
        return $options;
    }
public static function get_request_filter_options() {
        $filters = [
            self::FILTER_TYPE => (object)[
                'name' => get_string('requesttype', 'tool_dataprivacy'),
                'options' => self::get_request_types_short()
            ],
            self::FILTER_STATUS => (object)[
                'name' => get_string('requeststatus', 'tool_dataprivacy'),
                'options' => self::get_request_statuses()
            ],
            self::FILTER_CREATION => (object)[
                'name' => get_string('requestcreation', 'tool_dataprivacy'),
                'options' => self::get_request_creation_methods()
            ],
        ];
        $options = [];
        foreach ($filters as $category => $filtercategory) {
            foreach ($filtercategory->options as $key => $name) {
                $option = (object)[
                    'category' => $filtercategory->name,
                    'name' => $name
                ];
                $options["{$category}:{$key}"] = get_string('filteroption', 'tool_dataprivacy', $option);
            }
        }
        return $options;
    }
public static function get_request_filter_options ( ) { $ filters = [ self :: FILTER_TYPE => ( object ) [ 'name' => get_string ( 'requesttype' , 'tool_dataprivacy' ) , 'options' => self :: get_request_types_short ( ) ] , self :: FILTER_STATUS => ( object ) [ 'name' => get_string ( 'requeststatus' , 'tool_dataprivacy' ) , 'options' => self :: get_request_statuses ( ) ] , self :: FILTER_CREATION => ( object ) [ 'name' => get_string ( 'requestcreation' , 'tool_dataprivacy' ) , 'options' => self :: get_request_creation_methods ( ) ] , ] ; $ options = [ ] ; foreach ( $ filters as $ category => $ filtercategory ) { foreach ( $ filtercategory -> options as $ key => $ name ) { $ option = ( object ) [ 'category' => $ filtercategory -> name , 'name' => $ name ] ; $ options [ "{$category}:{$key}" ] = get_string ( 'filteroption' , 'tool_dataprivacy' , $ option ) ; } } return $ options ; }
Get options for the data requests filter.

@return array
@throws coding_exception
Get options for the data requests filter .