/** * Make an action with standard values. * @param string $shortname internal name of the action. Used to get strings * and build a URL. * @param array $params any URL params required. */ public static function make($shortname, $params = array()) { return new self(get_string('action_' . $shortname, 'local_sistemaaulaws'), local_sistemaaulaws_url($shortname, $params), get_string('action_' . $shortname . '_desc', 'local_sistemaaulaws')); }
/** * Output a link back to the plugin index page. * @return string html to output. */ public function back_to_index() { return $this->end_of_page_link(local_sistemaaulaws_url('index'), get_string('backtoindex', 'local_sistemaaulaws')); }