original_string: protected function action_link(moodle_url $url, $text, $name = 'popup') {
          global $OUTPUT;
          $link = new action_link($url, $text, new popup_action('click', $url, $name, array('height' => 440, 'width' => 700)));
          return $OUTPUT->render($link);
      }
code: protected function action_link(moodle_url $url, $text, $name = 'popup') {
          global $OUTPUT;
          $link = new action_link($url, $text, new popup_action('click', $url, $name, array('height' => 440, 'width' => 700)));
          return $OUTPUT->render($link);
      }
code_tokens: protected function action_link ( moodle_url $ url , $ text , $ name = 'popup' ) { global $ OUTPUT ; $ link = new action_link ( $ url , $ text , new popup_action ( 'click' , $ url , $ name , array ( 'height' => 440 , 'width' => 700 ) ) ) ; return $ OUTPUT -> render ( $ link ) ; }
docstring: Method to create a link with popup action.
  
  @param moodle_url $url The url to open.
  @param string $text Anchor text for the link.
  @param string $name Name of the popup window.
  
  @return string html to use.
docstring_tokens: Method to create a link with popup action .