protected function empty_queue(int $userid, int $timemodified) : void {
        global $DB;

        $DB->delete_records_select('forum_queue', "userid = :userid AND timemodified < :timemodified", [
                'userid' => $userid,
                'timemodified' => $timemodified,
            ]);
    }
protected function empty_queue(int $userid, int $timemodified) : void {
        global $DB;

        $DB->delete_records_select('forum_queue', "userid = :userid AND timemodified < :timemodified", [
                'userid' => $userid,
                'timemodified' => $timemodified,
            ]);
    }
protected function empty_queue ( int $ userid , int $ timemodified ) : void { global $ DB ; $ DB -> delete_records_select ( 'forum_queue' , "userid = :userid AND timemodified < :timemodified" , [ 'userid' => $ userid , 'timemodified' => $ timemodified , ] ) ; }
Empty the queue of posts for this user.

@param int $userid user id which queue elements are going to be removed.
@param int $timemodified up time limit of the queue elements to be removed.
Empty the queue of posts for this user .