/** * The constructor - calls parent constructor * * @param string $subtype */ public function __construct($subtype) { $this->subtype = $subtype; $url = new moodle_url('/mod/assign/adminmanageplugins.php', array('subtype'=>$subtype)); parent::__construct('manage' . $subtype . 'plugins', get_string('manage' . $subtype . 'plugins', 'assign'), $url); }
/** * Calls parent::__construct with specific arguments */ public function __construct() { global $CFG; parent::__construct('managefilters', get_string('filtersettings', 'admin'), "{$CFG->wwwroot}/{$CFG->admin}/filters.php"); }