/** * Constructs the object. * * @param moodle_url $url * @param pix_icon $icon * @param string $text * @param array $attributes */ public function __construct(moodle_url $url, pix_icon $icon = null, $text, array $attributes = array()) { parent::__construct($url, $icon, $text, false, $attributes); }
/** * Renders an action_menu_link item. * * @param action_menu_link $action * @return string HTML fragment */ protected function render_action_menu_link(action_menu_link $action) { return $this->render_from_template('core/action_menu_link', $action->export_for_template($this)); }