original_string: public function get_url() {
          $urlparams = [];
          if ($policyid = $this->get_policy_id_filter()) {
              $urlparams['policyid'] = $policyid;
          }
          if ($versionid = $this->get_version_id_filter()) {
              $urlparams['versionid'] = $versionid;
          }
          $i = 0;
          foreach ($this->filtersapplied as $filter) {
              if ($filter[0] != self::FILTER_POLICYID && $filter[0] != self::FILTER_VERSIONID) {
                  if ($filter[0] == self::FILTER_SEARCH_STRING) {
                      $urlparams['unified-filters['.($i++).']'] = $filter[1];
                  } else {
                      $urlparams['unified-filters['.($i++).']'] = join(':', $filter);
                  }
              }
          }
          return new \moodle_url('/admin/tool/policy/acceptances.php', $urlparams);
      }
code: public function get_url() {
          $urlparams = [];
          if ($policyid = $this->get_policy_id_filter()) {
              $urlparams['policyid'] = $policyid;
          }
          if ($versionid = $this->get_version_id_filter()) {
              $urlparams['versionid'] = $versionid;
          }
          $i = 0;
          foreach ($this->filtersapplied as $filter) {
              if ($filter[0] != self::FILTER_POLICYID && $filter[0] != self::FILTER_VERSIONID) {
                  if ($filter[0] == self::FILTER_SEARCH_STRING) {
                      $urlparams['unified-filters['.($i++).']'] = $filter[1];
                  } else {
                      $urlparams['unified-filters['.($i++).']'] = join(':', $filter);
                  }
              }
          }
          return new \moodle_url('/admin/tool/policy/acceptances.php', $urlparams);
      }
code_tokens: public function get_url ( ) { $ urlparams = [ ] ; if ( $ policyid = $ this -> get_policy_id_filter ( ) ) { $ urlparams [ 'policyid' ] = $ policyid ; } if ( $ versionid = $ this -> get_version_id_filter ( ) ) { $ urlparams [ 'versionid' ] = $ versionid ; } $ i = 0 ; foreach ( $ this -> filtersapplied as $ filter ) { if ( $ filter [ 0 ] != self :: FILTER_POLICYID && $ filter [ 0 ] != self :: FILTER_VERSIONID ) { if ( $ filter [ 0 ] == self :: FILTER_SEARCH_STRING ) { $ urlparams [ 'unified-filters[' . ( $ i ++ ) . ']' ] = $ filter [ 1 ] ; } else { $ urlparams [ 'unified-filters[' . ( $ i ++ ) . ']' ] = join ( ':' , $ filter ) ; } } } return new \ moodle_url ( '/admin/tool/policy/acceptances.php' , $ urlparams ) ; }
docstring: Returns URL of the acceptances page with all current filters applied
  
  @return \moodle_url
docstring_tokens: Returns URL of the acceptances page with all current filters applied