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);
    }
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);
    }
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 ) ; }
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.
Method to create a link with popup action .