original_string: public static function make_url($tagcollid, $name, $exclusivemode = 0, $fromctx = 0, $ctx = 0, $rec = 1) {
          $coll = core_tag_collection::get_by_id($tagcollid);
          if (!empty($coll->customurl)) {
              $url = '/' . ltrim(trim($coll->customurl), '/');
          } else {
              $url = '/tag/index.php';
          }
          $params = array('tc' => $tagcollid, 'tag' => $name);
          if ($exclusivemode) {
              $params['excl'] = 1;
          }
          if ($fromctx) {
              $params['from'] = $fromctx;
          }
          if ($ctx) {
              $params['ctx'] = $ctx;
          }
          if (!$rec) {
              $params['rec'] = 0;
          }
          return new moodle_url($url, $params);
      }
code: public static function make_url($tagcollid, $name, $exclusivemode = 0, $fromctx = 0, $ctx = 0, $rec = 1) {
          $coll = core_tag_collection::get_by_id($tagcollid);
          if (!empty($coll->customurl)) {
              $url = '/' . ltrim(trim($coll->customurl), '/');
          } else {
              $url = '/tag/index.php';
          }
          $params = array('tc' => $tagcollid, 'tag' => $name);
          if ($exclusivemode) {
              $params['excl'] = 1;
          }
          if ($fromctx) {
              $params['from'] = $fromctx;
          }
          if ($ctx) {
              $params['ctx'] = $ctx;
          }
          if (!$rec) {
              $params['rec'] = 0;
          }
          return new moodle_url($url, $params);
      }
code_tokens: public static function make_url ( $ tagcollid , $ name , $ exclusivemode = 0 , $ fromctx = 0 , $ ctx = 0 , $ rec = 1 ) { $ coll = core_tag_collection :: get_by_id ( $ tagcollid ) ; if ( ! empty ( $ coll -> customurl ) ) { $ url = '/' . ltrim ( trim ( $ coll -> customurl ) , '/' ) ; } else { $ url = '/tag/index.php' ; } $ params = array ( 'tc' => $ tagcollid , 'tag' => $ name ) ; if ( $ exclusivemode ) { $ params [ 'excl' ] = 1 ; } if ( $ fromctx ) { $ params [ 'from' ] = $ fromctx ; } if ( $ ctx ) { $ params [ 'ctx' ] = $ ctx ; } if ( ! $ rec ) { $ params [ 'rec' ] = 0 ; } return new moodle_url ( $ url , $ params ) ; }
docstring: Creates a URL to view a tag
  
  @param int $tagcollid
  @param string $name
  @param int $exclusivemode
  @param int $fromctx context id where this tag cloud is displayed
  @param int $ctx context id for tag view link
  @param int $rec recursive argument for tag view link
  @return \moodle_url
docstring_tokens: Creates a URL to view a tag