/** * Installs any new plugins */ public function install_new_plugins() { global $CFG; // include the ilp db require_once $CFG->dirroot . '/blocks/ilp/db/ilp_db.php'; // instantiate the ilp db class needed as this function will be called //when not in object context $dbc = new ilp_db(); //call the install new plugins function from the parent class //pass the list of plugins currently installed to it parent::install_new_plugins($dbc->get_dashboard_templates(), $CFG->dirroot . "/blocks/ilp/classes/dashboard/templates"); }